Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Cosmetic changes

  • Loading branch information...
commit 50a8e3e47f76ecc56a1d289f4e839de40fc02746 1 parent 3298377
@florentx florentx authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 pep8.py
View
4 pep8.py
@@ -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()
@@ -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(',')
Please sign in to comment.
Something went wrong with that request. Please try again.