Skip to content

Commit 2c4824f

Browse files
committed
Merge branch 'release/3.1'
2 parents 4e8b578 + b7363e2 commit 2c4824f

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

magento/api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
77
:license: BSD, see LICENSE for more details
88
'''
9-
import sys
9+
import six
1010
from threading import RLock
1111

1212
PROTOCOLS = []
1313
try:
14-
if sys.version_info < (3, 0):
14+
if six.PY2:
1515
from xmlrpclib import ServerProxy
1616
else:
1717
from xmlrpc.client import ServerProxy
@@ -57,11 +57,11 @@ def __new__(meta, name, bases, dct):
5757
return Klass
5858

5959

60+
@six.add_metaclass(ClientApiMeta)
6061
class API(object):
6162
"""
6263
Generic API to connect to magento
6364
"""
64-
__metaclass__ = ClientApiMeta
6565
__abstract__ = True
6666

6767
def __init__(self, url, username, password,

magento/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
installing the module
77
88
"""
9-
VERSION = '3.0'
9+
VERSION = '3.1'

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
platforms='any',
2626
install_requires=[
2727
'suds-jurko>=0.6',
28+
'six',
2829
],
2930
classifiers=[
3031
'Development Status :: 6 - Mature',

0 commit comments

Comments
 (0)