Draft: Remove Python 2 type support

This commit is contained in:
marioalexis
2022-03-28 18:02:23 -03:00
parent 5a0bcbbb9c
commit 79b7bfd5d0
6 changed files with 8 additions and 56 deletions

View File

@@ -28,7 +28,6 @@
## \addtogroup drafttaskpanels
# @{
import sys
import PySide.QtCore as QtCore
import PySide.QtGui as QtGui
@@ -120,10 +119,7 @@ class ShapeStringTaskPanel:
def createObject(self):
"""Create object in the current document."""
dquote = '"'
if sys.version_info.major < 3: # Python3: no more unicode
String = 'u' + dquote + str(self.task.leString.text().encode('unicode_escape')) + dquote
else:
String = dquote + self.task.leString.text() + dquote
String = dquote + self.task.leString.text() + dquote
FFile = dquote + str(self.fileSpec) + dquote
Size = str(U.Quantity(self.task.sbHeight.text()).Value)