Explorar o código

Remove labelme/compat.py

Kentaro Wada %!s(int64=6) %!d(string=hai) anos
pai
achega
09c2605486
Modificáronse 4 ficheiros con 6 adicións e 10 borrados
  1. 4 1
      labelme/__init__.py
  2. 1 1
      labelme/app.py
  3. 1 1
      labelme/canvas.py
  4. 0 7
      labelme/compat.py

+ 4 - 1
labelme/__init__.py

@@ -1,10 +1,14 @@
 # flake8: noqa
 
 import logging
+from qtpy import QT_VERSION
 
 
 __appname__ = 'labelme'
 
+QT5 = QT_VERSION[0] == '5'
+del QT_VERSION
+
 logging.basicConfig(level=logging.INFO)
 logger = logging.getLogger(__appname__)
 
@@ -13,4 +17,3 @@ from labelme._version import __version__
 
 from labelme import testing
 from labelme import utils
-from labelme import compat

+ 1 - 1
labelme/app.py

@@ -14,9 +14,9 @@ from qtpy import QtWidgets
 
 from labelme import __appname__
 from labelme import __version__
+from labelme import QT5
 from labelme.canvas import Canvas
 from labelme.colorDialog import ColorDialog
-from labelme.compat import QT5
 from labelme.config import get_config
 from labelme.labelDialog import LabelDialog
 from labelme.labelFile import LabelFile

+ 1 - 1
labelme/canvas.py

@@ -2,7 +2,7 @@ from qtpy import QtCore
 from qtpy import QtGui
 from qtpy import QtWidgets
 
-from labelme.compat import QT5
+from labelme import QT5
 from labelme.lib import distance
 from labelme.shape import Shape
 

+ 0 - 7
labelme/compat.py

@@ -1,7 +0,0 @@
-from qtpy import QT_VERSION
-
-
-QT5 = QT_VERSION[0] == '5'
-
-
-del QT_VERSION