Skip to content

Commit 740f486

Browse files
committed
Fix for Python 3.x
1 parent be75b77 commit 740f486

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nexmo/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def __init__(self, **kwargs):
3434

3535
user_agent = 'nexmo-python/{0}/{1}'.format(__version__, python_version())
3636

37-
if kwargs.has_key('app_name') and kwargs.has_key('app_version'):
37+
if 'app_name' in kwargs and 'app_version' in kwargs:
3838
user_agent += '/{0}/{1}'.format(kwargs['app_name'], kwargs['app_version'])
3939

4040
self.headers = {'User-Agent': user_agent}

0 commit comments

Comments
 (0)