Skip to content

Commit

Permalink
Merge pull request #4651 from Ericvulpi/Spyder--Fix-to-issue-#1785
Browse files Browse the repository at this point in the history
PR: Avoid comments to generate pep8 warnings
  • Loading branch information
ccordoba12 committed Jun 30, 2017
2 parents 9a92ca0 + 7665e59 commit 6141665
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions spyder/widgets/sourcecode/codeeditor.py
Expand Up @@ -2258,14 +2258,15 @@ def toggle_comment(self):

def comment(self):
"""Comment current line or selection."""
self.add_prefix(self.comment_string)
self.add_prefix(self.comment_string + " ")

def uncomment(self):
"""Uncomment current line or selection."""
self.remove_prefix(self.comment_string)
self.remove_prefix(" ")

def __blockcomment_bar(self):
return self.comment_string + '='*(79-len(self.comment_string))
return self.comment_string + ' ' + '=' * (78 - len(self.comment_string))

def transform_to_uppercase(self):
"""Change to uppercase current line or selection."""
Expand Down

0 comments on commit 6141665

Please sign in to comment.