Skip to content

Commit 111bdb8

Browse files
committed
cleanup QCodeEditor imports
1 parent 6233626 commit 111bdb8

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

QCodeEditor.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@
1313
import binaryninjaui
1414
from binaryninja import log_warn, bncompleter
1515
if "qt_major_version" in binaryninjaui.__dict__ and binaryninjaui.qt_major_version == 6:
16-
from PySide6.QtCore import Qt, QRect, QRegularExpression
17-
from PySide6.QtWidgets import QWidget, QTextEdit, QPlainTextEdit
18-
from PySide6.QtGui import (QPainter, QFont, QSyntaxHighlighter, QTextFormat, QTextCharFormat, QColor, QTextCursor)
16+
from PySide6.QtCore import Qt, QRect
17+
from PySide6.QtWidgets import QWidget, QPlainTextEdit
18+
from PySide6.QtGui import (QPainter, QFont, QSyntaxHighlighter, QTextCharFormat, QTextCursor)
1919
else:
20-
from PySide2.QtCore import Qt, QRect, QRegularExpression
21-
from PySide2.QtWidgets import QWidget, QTextEdit, QPlainTextEdit
22-
from PySide2.QtGui import (QPainter, QFont, QSyntaxHighlighter, QTextFormat, QTextCharFormat, QColor, QTextCursor)
20+
from PySide2.QtCore import Qt, QRect
21+
from PySide2.QtWidgets import QWidget, QPlainTextEdit
22+
from PySide2.QtGui import (QPainter, QFont, QSyntaxHighlighter, QTextCharFormat, QTextCursor)
2323
from binaryninjaui import (getMonospaceFont, getThemeColor, ThemeColor)
2424
try:
25-
from pygments import highlight, token
25+
from pygments import highlight
2626
from pygments.lexers import *
2727
from pygments.formatter import Formatter
2828

0 commit comments

Comments
 (0)