diff options
author | Georg Brandl <georg@python.org> | 2020-02-29 15:45:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-29 15:45:08 +0100 |
commit | 35544e2fc6eed0ce4a27ec7285aac71ff0ddc473 (patch) | |
tree | 4390507bf0d4d5a4596cfc57c575da12f9da40f9 /pygments/lexers/php.py | |
parent | 14fc057d300102d88a07eda5558f238d49dd23f6 (diff) | |
download | pygments-git-35544e2fc6eed0ce4a27ec7285aac71ff0ddc473.tar.gz |
Remove Python 2 compatibility (#1348)
* Remove Python 2 compatibility
* remove 2/3 shims in pygments.util
* update setup.py metadata
* Remove unneeded object inheritance.
* Remove unneeded future imports.
Diffstat (limited to 'pygments/lexers/php.py')
-rw-r--r-- | pygments/lexers/php.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pygments/lexers/php.py b/pygments/lexers/php.py index 680f0573..4f06d216 100644 --- a/pygments/lexers/php.py +++ b/pygments/lexers/php.py @@ -15,8 +15,7 @@ from pygments.lexer import RegexLexer, include, bygroups, default, using, \ this, words from pygments.token import Text, Comment, Operator, Keyword, Name, String, \ Number, Punctuation, Other -from pygments.util import get_bool_opt, get_list_opt, iteritems, \ - shebang_matches +from pygments.util import get_bool_opt, get_list_opt, shebang_matches __all__ = ['ZephirLexer', 'PhpLexer'] @@ -245,7 +244,7 @@ class PhpLexer(RegexLexer): self._functions = set() if self.funcnamehighlighting: from pygments.lexers._php_builtins import MODULES - for key, value in iteritems(MODULES): + for key, value in MODULES.items(): if key not in self.disabledmodules: self._functions.update(value) RegexLexer.__init__(self, **options) |