Skip to content

Commit 8f0dc49

Browse files
Merge pull request #116 from box/module_name_string_format
Change format of sub-module names in the object module to str
2 parents 8359675 + 2431ce6 commit 8f0dc49

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

boxsdk/object/__init__.py

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,7 @@
22

33
from __future__ import unicode_literals
44

5-
import six
5+
from six.moves import map # pylint:disable=redefined-builtin
66

77

8-
__all__ = [
9-
'collaboration',
10-
'events',
11-
'file',
12-
'folder',
13-
'group',
14-
'group_membership',
15-
'search',
16-
'user',
17-
]
18-
19-
if six.PY2:
20-
__all__ = [unicode.encode(x, 'utf-8') for x in __all__]
8+
__all__ = list(map(str, ['collaboration', 'events', 'file', 'folder', 'group', 'group_membership', 'search', 'user']))

0 commit comments

Comments
 (0)