py3: arch: fix tests

issue 0000995
This commit is contained in:
looooo
2017-06-20 12:18:01 +02:00
committed by wmayer
parent fe66e96faf
commit cd9adc7994
3 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ def readPresets():
for profilefile in profilefiles:
if os.path.exists(profilefile):
try:
with open(profilefile, "rb") as csvfile:
with open(profilefile, "r") as csvfile:
beamreader = csv.reader(csvfile)
bid=1 #Unique index
for row in beamreader:
+4 -4
View File
@@ -296,10 +296,10 @@ class _Rebar(ArchComponent.Component):
shapes = []
placementlist = []
if obj.Amount == 1:
barplacement = CalculatePlacement(obj.Amount, 1, size, axis, father.Placement.Rotation, obj.OffsetStart.Value, obj.OffsetEnd.Value)
placementlist.append(barplacement)
if hasattr(obj,"Spacing"):
obj.Spacing = 0
barplacement = CalculatePlacement(obj.Amount, 1, size, axis, father.Placement.Rotation, obj.OffsetStart.Value, obj.OffsetEnd.Value)
placementlist.append(barplacement)
if hasattr(obj,"Spacing"):
obj.Spacing = 0
else:
if obj.OffsetStart.Value:
baseoffset = DraftVecUtils.scaleTo(axis,obj.OffsetStart.Value)
+1 -1
View File
@@ -30,7 +30,7 @@ if FreeCAD.GuiUp:
from PySide.QtCore import QT_TRANSLATE_NOOP
else:
# \cond
def translate(ctxt,txt):
def translate(ctxt,txt, utf8_decode=False):
return txt
def QT_TRANSLATE_NOOP(ctxt,txt):
return txt