Skip to content

Commit

Permalink
Cosmetic changes
Browse files Browse the repository at this point in the history
  • Loading branch information
florentx committed Sep 11, 2010
1 parent 3298377 commit 50a8e3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pep8.py
Original file line number Diff line number Diff line change
Expand Up @@ -1185,7 +1185,7 @@ def selftest():
codes = [key for key in options.counters.keys()
if key not in BENCHMARK_KEYS]
error = "incorrectly found %s" % ', '.join(codes)
elif options.counters.get(code, 0) == 0:
elif not options.counters.get(code):
error = "failed to find %s" % code
# Reset the counters
reset_counters()
Expand Down Expand Up @@ -1252,7 +1252,7 @@ def process_options(arglist=None):
options, args = parser.parse_args(arglist)
if options.testsuite:
args.append(options.testsuite)
if len(args) == 0 and not options.doctest:
if not args and not options.doctest:
parser.error('input not specified')
options.prog = os.path.basename(sys.argv[0])
options.exclude = options.exclude.split(',')
Expand Down

0 comments on commit 50a8e3e

Please sign in to comment.