Skip to content

Commit ab45d35

Browse files
authored
Merge pull request #22 from roaldnefs/fix-2to3
Fix Python 3 compatibility issues
2 parents 10d7a72 + abac603 commit ab45d35

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

examples/message_create.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
print(' scheduledDatetime : %s' % msg.scheduledDatetime)
3232
print(' createdDatetime : %s' % msg.createdDatetime)
3333
print(' recipients : %s\n' % msg.recipients)
34-
print
34+
print()
3535

3636
except messagebird.client.ErrorException as e:
3737
print('\nAn error occured while requesting a Message object:\n')

messagebird/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
class Base(object):
44
def load(self, data):
5-
for name, value in data.items():
5+
for name, value in list(data.items()):
66
if hasattr(self, name):
77
setattr(self, name, value)
88

setup.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,9 @@
1212
keywords = ['messagebird', 'sms'],
1313
install_requires = ['requests>=2.4.1'],
1414
license = 'BSD-2-Clause',
15+
classifiers = [
16+
'Programming Language :: Python',
17+
'Programming Language :: Python :: 2',
18+
'Programming Language :: Python :: 3',
19+
],
1520
)

0 commit comments

Comments
 (0)