diff options
author | Hamilton Kibbe <hamilton.kibbe@gmail.com> | 2015-10-10 17:02:45 -0400 |
---|---|---|
committer | Hamilton Kibbe <hamilton.kibbe@gmail.com> | 2015-10-10 17:02:45 -0400 |
commit | 10d9028e1fdf7431baee73c7f1474d2134bac5fa (patch) | |
tree | c9b4263852cf6e8a2f4003ac746011424d1edc69 /gerber/excellon.py | |
parent | dd63b169f177389602e17bc6ced53bd0f1ba0de3 (diff) | |
download | gerbonara-10d9028e1fdf7431baee73c7f1474d2134bac5fa.tar.gz gerbonara-10d9028e1fdf7431baee73c7f1474d2134bac5fa.tar.bz2 gerbonara-10d9028e1fdf7431baee73c7f1474d2134bac5fa.zip |
Python 3 fix
Diffstat (limited to 'gerber/excellon.py')
-rwxr-xr-x | gerber/excellon.py | 6 |
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
|