diff options
| author | Ramiro Morales <cramm0@gmail.com> | 2014-04-29 07:46:54 -0300 |
|---|---|---|
| committer | Ramiro Morales <cramm0@gmail.com> | 2014-04-29 07:52:43 -0300 |
| commit | 62bbfba3aa96011a374f935d2c2176e5c2c90b85 (patch) | |
| tree | a8c45f2c105225c17f7d590b5276b11790f44713 | |
| parent | 95c5e244fef906c688642f555292635e1b10a8c3 (diff) | |
[1.7.x] Removed bogus, ineffective 'U' flag from codecs.open() call.
2df7238512 from master.
| -rw-r--r-- | django/core/management/sql.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/core/management/sql.py b/django/core/management/sql.py index 4832f27b07..841f55de0e 100644 --- a/django/core/management/sql.py +++ b/django/core/management/sql.py @@ -202,7 +202,7 @@ def custom_sql_for_model(model, style, connection): sql_files.append(os.path.join(app_dir, "%s.sql" % opts.model_name)) for sql_file in sql_files: if os.path.exists(sql_file): - with codecs.open(sql_file, 'r' if six.PY3 else 'U', encoding=settings.FILE_CHARSET) as fp: + with codecs.open(sql_file, 'r', encoding=settings.FILE_CHARSET) as fp: output.extend(connection.ops.prepare_sql_script(fp.read(), _allow_fallback=True)) return output |
