diff --git a/erpnext/patches/july_2012/deprecate_bulk_rename.py b/erpnext/patches/july_2012/deprecate_bulk_rename.py index d65c8b1ac4a..06f1a211592 100644 --- a/erpnext/patches/july_2012/deprecate_bulk_rename.py +++ b/erpnext/patches/july_2012/deprecate_bulk_rename.py @@ -1,3 +1,4 @@ +from __future__ import unicode_literals def execute(): import webnotes from webnotes.model import delete_doc diff --git a/erpnext/patches/july_2012/unicode_conf.py b/erpnext/patches/july_2012/unicode_conf.py new file mode 100644 index 00000000000..24ceed4209f --- /dev/null +++ b/erpnext/patches/july_2012/unicode_conf.py @@ -0,0 +1,6 @@ +from __future__ import unicode_literals + +def execute(): + """appends from __future__ import unicode_literals to py files if necessary""" + import wnf + wnf.append_future_import() \ No newline at end of file diff --git a/erpnext/patches/patch_list.py b/erpnext/patches/patch_list.py index b8720698df5..e15b6dc49c9 100644 --- a/erpnext/patches/patch_list.py +++ b/erpnext/patches/patch_list.py @@ -511,4 +511,9 @@ patch_list = [ 'patch_file': 'deprecate_bulk_rename', 'description': "Remove Bulk Rename Tool" }, + { + 'patch_module': 'patches.july_2012', + 'patch_file': 'unicode_conf', + 'description': "appends from __future__ import unicode_literals to py files if necessary" + }, ] \ No newline at end of file