Skip to content

Commit 4d09d11

Browse files
committed
Merge pull request #759 from practicalswift/fix-pygments-issue
[Python] Use explicit imports in utils/pygments/swift.py
2 parents 1b32783 + 1c63086 commit 4d09d11

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

utils/pygments/swift.py

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,23 @@
22

33
import re
44

5-
from pygments.lexer import RegexLexer, include, bygroups
6-
from pygments.token import *
5+
from pygments.lexer import (
6+
RegexLexer,
7+
bygroups,
8+
include,
9+
)
10+
from pygments.token import (
11+
Comment,
12+
Generic,
13+
Keyword,
14+
Name,
15+
Number,
16+
Operator,
17+
Punctuation,
18+
String,
19+
Text,
20+
Whitespace,
21+
)
722

823
__all__ = ['SwiftLexer', 'SwiftConsoleLexer']
924

0 commit comments

Comments
 (0)