UPD: first little 2to3 migration steps.
This commit is contained in:
1 parent
1031442d9b
commit
1bc42945c1
5 files changed
+8
-8
No files matched your search
@@ -27,7 +27,7 @@ class Command(BaseCommand):
|
||||
if pkg_resources.resource_exists(module_name, input_file):
|
||||
output_file = os.path.join(django_base_dir, django_main_module, settings_file_name)
|
||||
if not os.path.exists(output_file):
|
||||
with open(output_file, 'w') as f:
|
||||
with open(output_file, 'wb') as f:
|
||||
f.write(pkg_resources.resource_string(module_name, input_file))
|
||||
|
||||
module_meta_obj = ModuleMeta(module_name)
|
||||
|
||||
Reference in new issue
Block a user