Skip to content

Commit

Permalink
[python] Additional changes for python3 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip Langdale committed Apr 7, 2015
1 parent 73829ba commit 5266328
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
from sys import version_info, platform

if version_info[:2] > (2, 5):
install_requires = []
install_requires = ['six']
else:
install_requires = ['simplejson >= 2.0.0']
install_requires = ['six', 'simplejson >= 2.0.0']

# Python 2.6 and below requires argparse
if version_info[:2] < (2, 7):
Expand Down Expand Up @@ -60,6 +60,7 @@
"Programming Language :: Python",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.3",
],
entry_points = { 'console_scripts': [ 'cmps = cm_shell.cmps:main', ]}
)
2 changes: 1 addition & 1 deletion python/src/cm_api_tests/test_replication.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def test_hdfs_arguments(self):
self.assertFalse(args.preservePermissions)
self.assertTrue(args.preserveReplicationCount)
self.assertFalse(args.skipTrash)
self.assertEquals('DYNAMIC', args.replicationStrategy)
self.assertEqual('DYNAMIC', args.replicationStrategy)
self.assertFalse(args.preserveXAttrs)

def test_hive_arguments(self):
Expand Down

0 comments on commit 5266328

Please sign in to comment.