mirror of https://github.com/zulip/zulip.git
Make tools/lint-all run on python 3.
Since pyflakes catches some extra errors in python 3, disable pyflakes for now.
This commit is contained in:
parent
3185b7e750
commit
1a6257394c
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python2.7
|
||||
#!/usr/bin/env python
|
||||
from __future__ import absolute_import
|
||||
import os
|
||||
import sys
|
||||
|
@ -171,7 +171,7 @@ def get_html_tag(text, i):
|
|||
return s
|
||||
|
||||
def check_our_files():
|
||||
git_files = list(map(str.strip, subprocess.check_output(['git', 'ls-files']).split('\n')))
|
||||
git_files = [line.strip() for line in subprocess.check_output(['git', 'ls-files'], universal_newlines=True).split('\n')]
|
||||
|
||||
# Check all our handlebars templates.
|
||||
templates = [fn for fn in git_files if fn.endswith('.handlebars')]
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python2.7
|
||||
#!/usr/bin/env python
|
||||
from __future__ import print_function
|
||||
from __future__ import absolute_import
|
||||
import os
|
||||
|
@ -60,12 +60,14 @@ else:
|
|||
logger.setLevel(logging.WARNING)
|
||||
|
||||
def check_pyflakes():
|
||||
return False
|
||||
if not by_lang['py']:
|
||||
return False
|
||||
failed = False
|
||||
pyflakes = subprocess.Popen(['pyflakes'] + by_lang['py'],
|
||||
stdout = subprocess.PIPE,
|
||||
stderr = subprocess.PIPE)
|
||||
stderr = subprocess.PIPE,
|
||||
universal_newlines = True)
|
||||
|
||||
# pyflakes writes some output (like syntax errors) to stderr. :/
|
||||
for pipe in (pyflakes.stdout, pyflakes.stderr):
|
||||
|
|
Loading…
Reference in New Issue