Skip to content

Commit

Permalink
Take care of "1 #comment" case.
Browse files Browse the repository at this point in the history
  • Loading branch information
myint committed Dec 4, 2011
1 parent 535189f commit 5d98ec6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion autopep8.py
Expand Up @@ -221,7 +221,7 @@ def fix_e261(self, result):
self.source[result['line'] - 1] = fixed

def fix_e262(self, result):
self._fix_whitespace(result, r"##*", "#")
self._fix_whitespace(result, r"##* *", "# ")

def fix_e301(self, result):
cr = self.newline
Expand Down
1 change: 1 addition & 0 deletions test_target.py
Expand Up @@ -8,6 +8,7 @@ def foo():
print 2 # e261
print 2 ## e262
print 2 #### e262
print 2 #e262
1 /1
1 *2
1 +1
Expand Down

0 comments on commit 5d98ec6

Please sign in to comment.