summaryrefslogtreecommitdiff
path: root/gerber/common.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/common.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/common.py')
-rw-r--r--gerber/common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gerber/common.py b/gerber/common.py
index 50ba728..1659e3b 100644
--- a/gerber/common.py
+++ b/gerber/common.py
@@ -34,7 +34,7 @@ def read(filename):
CncFile object representing the file, either GerberFile or
ExcellonFile. Returns None if file is not an Excellon or Gerber file.
"""
- with open(filename, 'r') as f:
+ with open(filename, 'rU') as f:
data = f.read()
fmt = detect_file_format(data)
if fmt == 'rs274x':