From f3fb6762e88232d0843a528c326da754744759b5 Mon Sep 17 00:00:00 2001 From: looooo Date: Tue, 17 Jan 2017 12:08:16 +0100 Subject: [PATCH] py3: Arch: some more fixes --- src/Mod/Arch/ArchCommands.py | 2 +- src/Mod/Arch/ArchProfile.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/Arch/ArchCommands.py b/src/Mod/Arch/ArchCommands.py index 1b4853306..305ff5d8a 100644 --- a/src/Mod/Arch/ArchCommands.py +++ b/src/Mod/Arch/ArchCommands.py @@ -900,7 +900,7 @@ def makeCompoundFromSelected(objects=None): Part.show(c) -def cleanArchSplitter(objecs=None): +def cleanArchSplitter(objects=None): """cleanArchSplitter([objects]): removes the splitters from the base shapes of the given Arch objects or selected Arch objects if objects is None""" import FreeCAD,FreeCADGui diff --git a/src/Mod/Arch/ArchProfile.py b/src/Mod/Arch/ArchProfile.py index d6c3884c1..87bd3445e 100644 --- a/src/Mod/Arch/ArchProfile.py +++ b/src/Mod/Arch/ArchProfile.py @@ -59,7 +59,7 @@ def readPresets(): for profilefile in profilefiles: if os.path.exists(profilefile): try: - with open(profilefile, 'r') as csvfile: + with open(profilefile, 'rb') as csvfile: beamreader = csv.reader(csvfile) bid=1 #Unique index for row in beamreader: