Skip to content

Commit

Permalink
Handle types import
Browse files Browse the repository at this point in the history
  • Loading branch information
joshmoore committed Sep 11, 2019
1 parent ccdcd5a commit f416cc0
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions src/omero/gateway/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,20 @@

import warnings
from collections import defaultdict
from types import IntType, LongType, UnicodeType, ListType
from types import BooleanType, TupleType, StringType, StringTypes

try:
from types import IntType, LongType, UnicodeType, ListType
from types import BooleanType, TupleType, StringType, StringTypes
except ImportError:
IntType = int
LongType = int
UnicodeType = str
ListType = list
BooleanType = bool
TupleType = tuple
StringType = str
StringTypes = str

from datetime import datetime
from io import StringIO
import configparser
Expand Down

0 comments on commit f416cc0

Please sign in to comment.