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