Browse files

Do not expect arguments after --diff.

  • Loading branch information...
1 parent fced27d commit 6ff543b6ae5386dfb5d6616456a78030cbd6e230 @florentx florentx committed Jun 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 pep8.py
View
2 pep8.py
@@ -1908,7 +1908,7 @@ def process_options(arglist=None, parse_argv=False):
if options.testsuite:
args.append(options.testsuite)
elif not options.doctest:
- if parse_argv and not args:
+ if parse_argv and not args and not options.diff:
if os.path.exists('.pep8'):
args = ['.']
else:

0 comments on commit 6ff543b

Please sign in to comment.