Skip to content

Commit 56d0dd0

Browse files
committed
small code cleanups
1 parent 6ef24cc commit 56d0dd0

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

__init__.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414
from binaryninja.plugin import PluginCommand, MainThreadActionHandler
1515
from binaryninja.mainthread import execute_on_main_thread
1616
from binaryninja.log import (log_error, log_debug)
17-
from binaryninjaui import (getMonospaceFont, UIAction, UIActionHandler, Menu, DockHandler,
18-
getThemeColor, ThemeColor)
17+
from binaryninjaui import (getMonospaceFont, UIAction, UIActionHandler, Menu, DockHandler)
1918
import numbers
2019
from .QCodeEditor import QCodeEditor, PythonHighlighter
2120

@@ -158,7 +157,7 @@ def __init__(self, context, parent=None):
158157
font = getMonospaceFont(self)
159158
self.edit.setFont(font)
160159
font = QFontMetrics(font)
161-
self.edit.setTabStopWidth(4 * font.width(' ')); #TODO, replace with settings API
160+
self.edit.setTabStopWidth(4 * font.width(' ')) #TODO, replace with settings API
162161

163162
#Files
164163
self.files = QFileSystemModel()
@@ -296,7 +295,7 @@ def reject(self):
296295

297296
def browseSnippets(self):
298297
url = QUrl.fromLocalFile(snippetPath)
299-
QDesktopServices.openUrl(url);
298+
QDesktopServices.openUrl(url)
300299

301300
def newFolder(self):
302301
(folderName, ok) = QInputDialog.getText(self, self.tr("Folder Name"), self.tr("Folder Name: "))

0 commit comments

Comments
 (0)