Commits

Anonymous committed 9370061

Made encoding header generated Python files PEP 0263 compliant.

This affects files generated by the "datamigration" and "schemamigration"
commands.

Fixes http://south.aeracode.org/ticket/877.

  • Participants
  • Parent commits 7bf54d9

Comments (0)

Files changed (2)

south/management/commands/datamigration.py

         sys.exit(code)
 
 
-MIGRATION_TEMPLATE = """# encoding: utf-8
+MIGRATION_TEMPLATE = """# -*- coding: utf-8 -*-
 import datetime
 from south.db import db
 from south.v2 import DataMigration

south/management/commands/schemamigration.py

                 print >>sys.stderr, "Created %s. You can now apply this migration with: ./manage.py migrate %s" % (new_filename, app)
 
 
-MIGRATION_TEMPLATE = """# encoding: utf-8
+MIGRATION_TEMPLATE = """# -*- coding: utf-8 -*-
 import datetime
 from south.db import db
 from south.v2 import SchemaMigration