We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5355a1 commit 64ffdc0Copy full SHA for 64ffdc0
javaobj/core.py
@@ -40,6 +40,14 @@
40
import struct
41
import sys
42
43
+try:
44
+ # Python 2
45
+ from StringIO import StringIO as BytesIO
46
+except ImportError:
47
+ # Python 3+
48
+ from io import BytesIO
49
+
50
+# Javaobj modules
51
from javaobj.modifiedutf8 import decode_modified_utf8
52
from javaobj.utils import (
53
log_debug,
@@ -52,13 +60,6 @@
60
unicode_char,
61
)
54
62
55
-try:
56
- # Python 2
57
- from StringIO import StringIO as BytesIO
58
-except ImportError:
59
- # Python 3+
- from io import BytesIO
-
63
# ------------------------------------------------------------------------------
64
65
__all__ = (
0 commit comments