Skip to content

Commit

Permalink
Use python3 imports for StringIO and StringType
Browse files Browse the repository at this point in the history
Replace:
- cStringIO.StringIO by io
- types.StringType by str
  • Loading branch information
Linkid committed Dec 28, 2017
1 parent c3d1df5 commit 8eb6719
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions fretwork/midi/RawOutstreamFile.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# -*- coding: utf-8 -*-

import sys
from types import StringType
from cStringIO import StringIO
try:
from cStringIO import StringIO
from types import StringType
except ImportError:
import io as StringIO
StringType = str

from .DataTypeConverters import writeVar
from .DataTypeConverters import writeBew
Expand Down

0 comments on commit 8eb6719

Please sign in to comment.