Skip to content

Commit dab23cf

Browse files
committed
Python2 is actually dead now
1 parent ca8ac44 commit dab23cf

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

pavement.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -109,28 +109,6 @@ def pull_plugins():
109109
sh('cd "{}";git pull'.format(plugin_dir))
110110

111111

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-
134112
@task
135113
def assert_all_projects_correctly_define_a_version():
136114
"""

0 commit comments

Comments
 (0)