From cc565eb2e4892d3f4a24bb67cabc10ff2afaa4fa Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Fri, 26 Oct 2018 09:25:07 -0500 Subject: [PATCH] Make Flake8 3.6 happy --- pudb/debugger.py | 2 +- pudb/lowlevel.py | 2 +- pudb/source_view.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pudb/debugger.py b/pudb/debugger.py index c001581..d1c4854 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 744c723..d842812 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 fbad0f0..3c01b57 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 -- GitLab