Change-Id: I1c9bd3a4706a1d7235981f15cb6e1f4cc8d7ff55
This commit is contained in:
Tim Burke 2019-02-13 08:42:30 -08:00
parent 04092a3f20
commit 0e3afd3b94
5 changed files with 13 additions and 12 deletions

View File

@ -19,7 +19,7 @@ reconstruction (think XOR-based LRC code).
-----
Installation
===========
============
Install pre-requisites:

View File

@ -134,7 +134,7 @@ class _EnumDict(dict):
"""
if pyver >= 3.0 and key == '__order__':
return
return
if _is_sunder(key):
raise ValueError('_names_ are reserved for future Enum use')
elif _is_dunder(key):

View File

@ -61,8 +61,8 @@ def create_instance(import_str, *args, **kwargs):
Returns instance of class which imported by import path.
:param import_str: import path of class
:param \*args: indexed arguments for new instance
:param \*\*kwargs: keyword arguments for new instance
:param *args: indexed arguments for new instance
:param **kwargs: keyword arguments for new instance
:returns: instance of imported class which instantiated with
arguments *args and **kwargs
"""

View File

@ -189,10 +189,11 @@ setup(name='pyeclib',
maintainer_email='kmgreen2@gmail.com, tusharsg@gmail.com',
url='http://git.openstack.org/cgit/openstack/pyeclib/',
bugtrack_url='https://bugs.launchpad.net/pyeclib',
description='This library provides a simple Python interface for \
implementing erasure codes. To obtain the best possible \
performance, the underlying erasure code algorithms are \
written in C.',
description=('This library provides a simple Python interface for '
'implementing erasure codes. To obtain the best possible '
'performance, the underlying erasure code algorithms are '
'written in C.'),
long_description=open('README.rst', 'r').read(),
platforms='Linux',
license='BSD',
ext_modules=[module],

View File

@ -159,10 +159,10 @@ class TestPyECLibDriver(unittest.TestCase):
available_ec_types = []
for _type in ALL_EC_TYPES:
try:
if _type is 'shss':
if _type == 'shss':
_k = 10
_m = 4
elif _type is 'libphazr':
elif _type == 'libphazr':
_k = 4
_m = 4
else:
@ -183,9 +183,9 @@ class TestPyECLibDriver(unittest.TestCase):
print("Skipping test for %s backend" % _type)
continue
try:
if _type is 'shss':
if _type == 'shss':
ECDriver(k=10, m=4, ec_type=_type)
elif _type is 'libphazr':
elif _type == 'libphazr':
ECDriver(k=4, m=4, ec_type=_type)
else:
ECDriver(k=10, m=5, ec_type=_type)