Skip to content
This repository was archived by the owner on Aug 28, 2020. It is now read-only.

Commit e317a13

Browse files
committed
pyinstaller is being weird about pygments
1 parent 871a0f3 commit e317a13

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

pugdebug/syntaxer.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99

1010
__author__ = "robertbasic"
1111

12-
from pygments import highlight
13-
from pygments.lexers import PhpLexer
14-
from pygments.formatter import Formatter
12+
from pygments import highlight, lexers, formatter
1513

1614
from PyQt5.QtGui import QSyntaxHighlighter, QColor, QTextCharFormat
1715

@@ -33,7 +31,7 @@ def __init__(self, document, formatter):
3331
super(PugdebugSyntaxer, self).__init__(document)
3432

3533
self.formatter = formatter
36-
self.lexer = PhpLexer()
34+
self.lexer = lexers.PhpLexer()
3735

3836
self.highlight()
3937

@@ -110,7 +108,7 @@ def __get_multiline_format(self, text, token_index):
110108
}]
111109

112110

113-
class PugdebugFormatter(Formatter):
111+
class PugdebugFormatter(formatter.Formatter):
114112

115113
styles = {}
116114

0 commit comments

Comments
 (0)