summaryrefslogtreecommitdiff
path: root/gerber/rs274x.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/rs274x.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/rs274x.py')
-rw-r--r--gerber/rs274x.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gerber/rs274x.py b/gerber/rs274x.py
index 72d7e95..9fd63da 100644
--- a/gerber/rs274x.py
+++ b/gerber/rs274x.py
@@ -213,7 +213,7 @@ class GerberParser(object):
self.step_and_repeat = (1, 1, 0, 0)
def parse(self, filename):
- with open(filename, "r") as fp:
+ with open(filename, "rU") as fp:
data = fp.read()
return self.parse_raw(data, filename=None)