Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make Flake8 3.6 happy
  • Loading branch information
inducer committed Oct 26, 2018
1 parent 2bc7dc2 commit cc565eb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pudb/debugger.py
Expand Up @@ -44,7 +44,7 @@
CONFIG = load_config()
save_config(CONFIG)

HELP_TEXT = """\
HELP_TEXT = r"""\
Welcome to PuDB, the Python Urwid debugger.
-------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion pudb/lowlevel.py
Expand Up @@ -116,7 +116,7 @@ def lookup_module(filename):
# the main idea stolen from Python 3.1's tokenize.py, by Ka-Ping Yee

import re
cookie_re = re.compile(b"^\s*#.*coding[:=]\s*([-\w.]+)")
cookie_re = re.compile(br"^\s*#.*coding[:=]\s*([-\w.]+)")
from codecs import lookup, BOM_UTF8


Expand Down
4 changes: 2 additions & 2 deletions pudb/source_view.py
Expand Up @@ -347,8 +347,8 @@ def parse_token(self, token, s):
self.state = ParseState.found_open_paren
self.paren_level = 1
else:
if ((token is self.t.Name) or
(token is self.t.Name.Builtin.Pseudo and s == 'self')):
if ((token is self.t.Name)
or (token is self.t.Name.Builtin.Pseudo and s == 'self')):
return self.t.Token.Argument
elif token is self.t.Punctuation and s == ')':
self.paren_level -= 1
Expand Down

0 comments on commit cc565eb

Please sign in to comment.