File tree Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Original file line number Diff line number Diff line change @@ -109,28 +109,6 @@ def pull_plugins():
109
109
sh ('cd "{}";git pull' .format (plugin_dir ))
110
110
111
111
112
- @task
113
- def assert_all_files_import_unicode_literals ():
114
- """
115
- error if a python file is found in sideboard or plugins that does not import unicode_literals; \
116
- this is skipped for Python 3
117
- """
118
- if sys .version_info [0 ] == 2 :
119
- all_files_found = []
120
- cmd = ("find '%s' -name '*.py' ! -size 0 "
121
- "-exec grep -RL 'from __future__ import.*unicode_literals.*$' {} \;" )
122
- for test_dir in chain (['sideboard' ], collect_plugin_dirs (module = True )):
123
- output = sh (cmd % test_dir , capture = True )
124
- if output :
125
- all_files_found .append (output )
126
-
127
- if all_files_found :
128
- print ('the following files did not include "from __future__ import unicode_literals":' )
129
- print ('' .join (all_files_found ))
130
- raise BuildFailure ("there were files that didn't include "
131
- '"from __future__ import unicode_literals"' )
132
-
133
-
134
112
@task
135
113
def assert_all_projects_correctly_define_a_version ():
136
114
"""
You can’t perform that action at this time.
0 commit comments