summaryrefslogtreecommitdiff
path: root/gerber/ipc356.py
diff options
context:
space:
mode:
authorPaulo Henrique Silva <ph.silva@gmail.com>2015-11-15 22:28:56 -0200
committerPaulo Henrique Silva <ph.silva@gmail.com>2015-11-15 22:28:56 -0200
commit6e29b9bcae8167dbb9c75e5a79e09886b952e988 (patch)
treefbc04c024bacb192567e9fb5d112673bbf6c1600 /gerber/ipc356.py
parentebc85181975add0fd98c18441f029e9af696f237 (diff)
downloadgerbonara-6e29b9bcae8167dbb9c75e5a79e09886b952e988.tar.gz
gerbonara-6e29b9bcae8167dbb9c75e5a79e09886b952e988.tar.bz2
gerbonara-6e29b9bcae8167dbb9c75e5a79e09886b952e988.zip
Use Python's universal newlines to open files
Diffstat (limited to 'gerber/ipc356.py')
-rw-r--r--gerber/ipc356.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gerber/ipc356.py b/gerber/ipc356.py
index e4d8027..b8a7ba3 100644
--- a/gerber/ipc356.py
+++ b/gerber/ipc356.py
@@ -144,7 +144,7 @@ class IPC_D_356_Parser(object):
return FileSettings(units=self.units, angle_units=self.angle_units)
def parse(self, filename):
- with open(filename, 'r') as f:
+ with open(filename, 'rU') as f:
oldline = ''
for line in f:
# Check for existing multiline data...