From 9f5672672bd61f7149d2a165b49f0617a1a9fe8e Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Tue, 8 Sep 2020 20:20:19 +0200 Subject: all: remove "u" string prefix (#1536) * all: remove "u" string prefix * util: remove unirange Since Python 3.3, all builds are wide unicode compatible. * unistring: remove support for narrow-unicode builds which stopped being relevant with Python 3.3 --- pygments/lexers/php.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pygments/lexers/php.py') diff --git a/pygments/lexers/php.py b/pygments/lexers/php.py index 2bad339a..aab502e2 100644 --- a/pygments/lexers/php.py +++ b/pygments/lexers/php.py @@ -116,13 +116,13 @@ class PsyshConsoleLexer(Lexer): insertions = [] for match in line_re.finditer(text): line = match.group() - if line.startswith(u'>>> ') or line.startswith(u'... '): + if line.startswith('>>> ') or line.startswith('... '): insertions.append((len(curcode), [(0, Generic.Prompt, line[:4])])) curcode += line[4:] - elif line.rstrip() == u'...': + elif line.rstrip() == '...': insertions.append((len(curcode), - [(0, Generic.Prompt, u'...')])) + [(0, Generic.Prompt, '...')])) curcode += line[3:] else: if curcode: -- cgit v1.2.1