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/css.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/css.py')
| -rw-r--r-- | pygments/lexers/css.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pygments/lexers/css.py b/pygments/lexers/css.py index 4c77efe0..6209be0c 100644 --- a/pygments/lexers/css.py +++ b/pygments/lexers/css.py @@ -16,7 +16,6 @@ from pygments.lexer import ExtendedRegexLexer, RegexLexer, include, bygroups, \ default, words, inherit from pygments.token import Text, Comment, Operator, Keyword, Name, String, \ Number, Punctuation -from pygments.util import iteritems __all__ = ['CssLexer', 'SassLexer', 'ScssLexer', 'LessCssLexer'] @@ -612,7 +611,7 @@ class SassLexer(ExtendedRegexLexer): (r"\*/", Comment, '#pop'), ], } - for group, common in iteritems(common_sass_tokens): + for group, common in common_sass_tokens.items(): tokens[group] = copy.copy(common) tokens['value'].append((r'\n', Text, 'root')) tokens['selector'].append((r'\n', Text, 'root')) @@ -662,7 +661,7 @@ class ScssLexer(RegexLexer): (r"\*/", Comment, '#pop'), ], } - for group, common in iteritems(common_sass_tokens): + for group, common in common_sass_tokens.items(): tokens[group] = copy.copy(common) tokens['value'].extend([(r'\n', Text), (r'[;{}]', Punctuation, '#pop')]) tokens['selector'].extend([(r'\n', Text), (r'[;{}]', Punctuation, '#pop')]) |
