Draft: Remove Python 2 type support
This commit is contained in:
@@ -160,12 +160,7 @@ class ViewProviderText(ViewProviderDraftAnnotation):
|
||||
if prop == "Text" and obj.Text:
|
||||
self.text2d.string.setValue("")
|
||||
self.text3d.string.setValue("")
|
||||
|
||||
if sys.version_info.major >= 3:
|
||||
_list = [l for l in obj.Text if l]
|
||||
else:
|
||||
_list = [l.encode("utf8") for l in obj.Text if l]
|
||||
|
||||
_list = [l for l in obj.Text if l]
|
||||
self.text2d.string.setValues(_list)
|
||||
self.text3d.string.setValues(_list)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user