Skip to content

Commit

Permalink
Use io for py3
Browse files Browse the repository at this point in the history
  • Loading branch information
unnonouno committed Oct 23, 2014
1 parent 8a59952 commit c2325b2
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion mrep/builder.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
import mrep.pattern as pattern
import re
from cStringIO import StringIO
import sys

if sys.version_info >= (3, 0):
from io import StringIO
else:
try:
from cStringIO import StringIO
except ImportError:
from StringIO import StringIO


class ParseError(Exception):
Expand Down

0 comments on commit c2325b2

Please sign in to comment.