Commits

glarrain  committed 1f02466

migration.migrators: replaced import logic for `StringIO` with `utils.py3`

  • Participants
  • Parent commits 0a4e122
  • Branches python3

Comments (0)

Files changed (1)

File south/migration/migrators.py

 import inspect
 import sys
 import traceback
-try:
-    from cStringIO import StringIO # python 2
-except ImportError:
-    from io import StringIO # python 3
 
 from django.core.management import call_command
 from django.core.management.commands import loaddata
 from south.db import DEFAULT_DB_ALIAS
 from south.models import MigrationHistory
 from south.signals import ran_migration
+from south.utils.py3 import StringIO
 
 
 class Migrator(object):