summaryrefslogtreecommitdiff
path: root/check.py
diff options
context:
space:
mode:
authorNikolay Kim <fafhrd91@gmail.com>2013-09-19 21:20:42 -0700
committerNikolay Kim <fafhrd91@gmail.com>2013-09-19 21:20:42 -0700
commit2f123e368189eae92ad9481f54bf0ab10b06ae49 (patch)
tree86374c71f8bf2612e9c47e3bae6d3fb07783ea35 /check.py
parent286a2508ca88e9c49cd770014222b14a8779b462 (diff)
downloadtrollius-2f123e368189eae92ad9481f54bf0ab10b06ae49.tar.gz
pep8 related fixes
Diffstat (limited to 'check.py')
-rw-r--r--check.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/check.py b/check.py
index 9ab6bcc..6db82d6 100644
--- a/check.py
+++ b/check.py
@@ -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)