Package: django-evolution / 0.6.7-1

evolve_fix_get_mutations Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Description: Fix pyflakes error in get_mutations()
Author: Dmitry Nezhevenko <dion@dion.org.ua>
Bug: http://code.google.com/p/django-evolution/issues/detail?id=121

--- django-evolution-0.6.7.orig/django_evolution/evolve.py
+++ django-evolution-0.6.7/django_evolution/evolve.py
@@ -69,7 +69,7 @@ def get_mutations(app, evolution_labels,
         for filename in filenames:
             if os.path.exists(filename):
                 sql = []
-                sql_file = open(sql_file_name)
+                sql_file = open(filename)
 
                 for line in sql_file:
                     sql.append(line)