From 2f123e368189eae92ad9481f54bf0ab10b06ae49 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Thu, 19 Sep 2013 21:20:42 -0700 Subject: pep8 related fixes --- check.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'check.py') 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) -- cgit v1.2.1