mirror of
https://github.com/romanz/amodem.git
synced 2026-03-06 14:55:56 +08:00
Python 2.7 supports io.BytesIO
This commit is contained in:
@@ -1,8 +1,5 @@
|
||||
import os
|
||||
try:
|
||||
from cStringIO import StringIO as BytesIO
|
||||
except ImportError:
|
||||
from io import BytesIO # Python 3
|
||||
from io import BytesIO
|
||||
|
||||
import numpy as np
|
||||
|
||||
|
||||
Reference in New Issue
Block a user