diff options
author | Nikolay Kim <fafhrd91@gmail.com> | 2013-09-19 21:20:42 -0700 |
---|---|---|
committer | Nikolay Kim <fafhrd91@gmail.com> | 2013-09-19 21:20:42 -0700 |
commit | 2f123e368189eae92ad9481f54bf0ab10b06ae49 (patch) | |
tree | 86374c71f8bf2612e9c47e3bae6d3fb07783ea35 /check.py | |
parent | 286a2508ca88e9c49cd770014222b14a8779b462 (diff) | |
download | trollius-2f123e368189eae92ad9481f54bf0ab10b06ae49.tar.gz |
pep8 related fixes
Diffstat (limited to 'check.py')
-rw-r--r-- | check.py | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1,6 +1,8 @@ """Search for lines >= 80 chars or with trailing whitespace.""" -import sys, os +import os +import sys + def main(): args = sys.argv[1:] or os.curdir @@ -15,6 +17,7 @@ def main(): else: process(arg) + def isascii(x): try: x.encode('ascii') @@ -22,6 +25,7 @@ def isascii(x): except UnicodeError: return False + def process(fn): try: f = open(fn) |