Unicode fixes for Python3

This commit is contained in:
cclauss
2019-01-04 12:18:25 +01:00
committed by wmayer
parent 0453ee71e6
commit e3545c8c06
12 changed files with 108 additions and 101 deletions

View File

@@ -21,6 +21,8 @@
#* *
#***************************************************************************
import six
import FreeCAD as App
import FreeCADGui as Gui
@@ -454,8 +456,8 @@ class TaskPanel:
if loc in ['left', 'right']:
spine.set_position(('outward', form.yOffset.value()))
# Now we can restore axes labels
Plot.xlabel(unicode(x))
Plot.ylabel(unicode(y))
Plot.xlabel(six.text_type(x))
Plot.ylabel(six.text_type(y))
plt.update()
def onScales(self):