summaryrefslogtreecommitdiff
path: root/gerber/common.py
diff options
context:
space:
mode:
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':