[FEM] remove unneeded checks for Python 3

since we only support Python >=3, these checks can go
This commit is contained in:
Uwe
2022-07-31 02:42:39 +02:00
parent eabffee3a5
commit 529c48cca4
11 changed files with 22 additions and 67 deletions

View File

@@ -71,10 +71,7 @@ def importFCMat(fileName):
)
Config = configparser.RawConfigParser()
Config.optionxform = str
if sys.version_info.major >= 3:
Config.read(fileName, encoding='utf-8') # respect unicode filenames
else:
Config.read(fileName)
Config.read(fileName, encoding='utf-8') # respect unicode filenames
dict1 = {}
for section in Config.sections():
options = Config.options(section)

View File

@@ -25,7 +25,6 @@ __author__ = "Yorik van Havre, Bernd Hahnebach"
__url__ = "http://www.freecadweb.org"
import os
import sys
from PySide import QtCore, QtGui, QtSvg
import FreeCAD
@@ -33,8 +32,7 @@ import FreeCADGui
# import Material_rc
# is this still needed after the move to card utils???
if sys.version_info.major >= 3:
unicode = str
unicode = str
# ************************************************************************************************

View File

@@ -24,14 +24,12 @@ __author__ = "Bernd Hahnebach"
__url__ = "http://www.freecadweb.org"
import os
import sys
from os.path import join
import FreeCAD
if sys.version_info.major >= 3:
unicode = str
unicode = str
# TODO: