diff --git a/pudb/debugger.py b/pudb/debugger.py index c001581b76894b6879746fd9b0ec2d202e30a447..d1c4854ddb751b930246484e525396b49d7dbc29 100644 --- a/pudb/debugger.py +++ b/pudb/debugger.py @@ -44,7 +44,7 @@ from pudb.py3compat import PY3, raw_input, execfile CONFIG = load_config() save_config(CONFIG) -HELP_TEXT = """\ +HELP_TEXT = r"""\ Welcome to PuDB, the Python Urwid debugger. ------------------------------------------- diff --git a/pudb/lowlevel.py b/pudb/lowlevel.py index 744c723414d1576acaa094642a112a151ec211de..d84281290cd0cbc1fb498b6c0f9176ca0240c28d 100644 --- a/pudb/lowlevel.py +++ b/pudb/lowlevel.py @@ -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 diff --git a/pudb/source_view.py b/pudb/source_view.py index fbad0f041c29be0da0c11bd1cb1871f364914e10..3c01b5779aa2d5faad468ed281e7d019b2edc5d3 100644 --- a/pudb/source_view.py +++ b/pudb/source_view.py @@ -347,8 +347,8 @@ class ArgumentParser(object): 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