summaryrefslogtreecommitdiff
path: root/gerber/excellon.py
diff options
context:
space:
mode:
Diffstat (limited to 'gerber/excellon.py')
-rwxr-xr-xgerber/excellon.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/gerber/excellon.py b/gerber/excellon.py
index ba8573d..7333a98 100755
--- a/gerber/excellon.py
+++ b/gerber/excellon.py
@@ -25,7 +25,11 @@ This module provides Excellon file classes and parsing utilities
import math
import operator
-from cStringIO import StringIO
+
+try:
+ from cStringIO import StringIO
+except(ImportError):
+ from io import StringIO
from .excellon_statements import *
from .cam import CamFile, FileSettings