15
0
forked from pool/python-WSME

Accepting request 197135 from home:dirkmueller:branches:devel:languages:python

- 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
This commit is contained in:
Sascha Peilicke
2013-09-03 07:27:33 +00:00
committed by Git OBS Bridge
parent 3e5666f883
commit 933256d406
3 changed files with 25 additions and 0 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Sep 2 16:29:37 UTC 2013 - dmueller@suse.com
- add six-14-support.diff:
* Add support for Six 1.4+
-------------------------------------------------------------------
Mon Apr 29 11:27:37 UTC 2013 - dmueller@suse.com

View File

@@ -24,6 +24,7 @@ License: MIT
Group: Development/Languages/Python
Url: http://packages.python.org/WSME/
Source: http://pypi.python.org/packages/source/W/WSME/WSME-%{version}.tar.gz
Patch0: six-14-support.diff
BuildRequires: python-WebOb
BuildRequires: python-d2to1
BuildRequires: python-devel
@@ -48,6 +49,7 @@ with focus on extensibility, framework-independance and better type handling.
%prep
%setup -q -n WSME-%{version}
%patch0
%build
python setup.py build

17
six-14-support.diff Normal file
View File

@@ -0,0 +1,17 @@
--- 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)