forked from pool/python-WSME
- add six-14-support.diff: * Add support for Six 1.4+ OBS-URL: https://build.opensuse.org/request/show/197135 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-WSME?expand=0&rev=6
18 lines
536 B
Diff
18 lines
536 B
Diff
--- wsme/types.py
|
|
+++ wsme/types.py
|
|
@@ -573,12 +573,12 @@
|
|
|
|
class BaseMeta(type):
|
|
def __new__(cls, name, bases, dct):
|
|
- if bases[0] is not object and '__registry__' not in dct:
|
|
+ if bases and bases[0] is not object and '__registry__' not in dct:
|
|
dct['__registry__'] = registry
|
|
return type.__new__(cls, name, bases, dct)
|
|
|
|
def __init__(cls, name, bases, dct):
|
|
- if bases[0] is not object:
|
|
+ if bases and bases[0] is not object:
|
|
cls.__registry__.register(cls)
|
|
|
|
|