summaryrefslogtreecommitdiff
path: root/gerber/rs274x.py
diff options
context:
space:
mode:
authorHamilton Kibbe <hamilton.kibbe@gmail.com>2015-10-10 17:02:45 -0400
committerHamilton Kibbe <hamilton.kibbe@gmail.com>2015-10-10 17:02:45 -0400
commit10d9028e1fdf7431baee73c7f1474d2134bac5fa (patch)
treec9b4263852cf6e8a2f4003ac746011424d1edc69 /gerber/rs274x.py
parentdd63b169f177389602e17bc6ced53bd0f1ba0de3 (diff)
downloadgerbonara-10d9028e1fdf7431baee73c7f1474d2134bac5fa.tar.gz
gerbonara-10d9028e1fdf7431baee73c7f1474d2134bac5fa.tar.bz2
gerbonara-10d9028e1fdf7431baee73c7f1474d2134bac5fa.zip
Python 3 fix
Diffstat (limited to 'gerber/rs274x.py')
-rw-r--r--gerber/rs274x.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/gerber/rs274x.py b/gerber/rs274x.py
index 000f7a1..210b590 100644
--- a/gerber/rs274x.py
+++ b/gerber/rs274x.py
@@ -21,8 +21,12 @@
import copy
import json
import re
-from cStringIO import StringIO
+try:
+ from cStringIO import StringIO
+except(ImportError):
+ from io import StringIO
+
from .gerber_statements import *
from .primitives import *
from .cam import CamFile, FileSettings