diff options
author | Jon TURNEY <jon.turney@dronecode.org.uk> | 2015-02-08 16:32:01 +0000 |
---|---|---|
committer | Jon TURNEY <jon.turney@dronecode.org.uk> | 2015-06-05 20:32:23 +0100 |
commit | 7576a0d36e1c09c2c0dabc72792263348ec09fa4 (patch) | |
tree | e0308e9b2198642a421ce2b5130be86b8a55995c | |
parent | cf64a352321a5c37e73b55b1d7ce59cc35e735db (diff) |
Patch reg.py to avoid a python warning
/usr/share/opengl/api/reg.py:37: FutureWarning: The behavior of this method will
change in future versions. Use specific 'len(elem)' or 'elem is not None' test
instead.
Rebuild for python 3.3
-rw-r--r-- | khronos-opengl-registry.cygport | 3 | ||||
-rw-r--r-- | reg.py.patch | 11 |
2 files changed, 13 insertions, 1 deletions
diff --git a/khronos-opengl-registry.cygport b/khronos-opengl-registry.cygport index d092458..aa274f0 100644 --- a/khronos-opengl-registry.cygport +++ b/khronos-opengl-registry.cygport @@ -1,10 +1,11 @@ NAME=khronos-opengl-registry VERSION=`date -u +%Y%m%d`_svn27684 -RELEASE=1 +RELEASE=2 ARCH="noarch" SVN_URI="https://cvs.khronos.org/svn/repos/ogl/trunk/doc/registry/public/api/" SVN_REV=${VERSION##*svn} +PATCH_URI="reg.py.patch" inherit svn python3 diff --git a/reg.py.patch b/reg.py.patch new file mode 100644 index 0000000..492d334 --- /dev/null +++ b/reg.py.patch @@ -0,0 +1,11 @@ +--- reg.py.bak 2015-02-08 15:42:56.605819400 +0000 ++++ reg.py 2015-02-08 15:42:59.558973100 +0000 +@@ -34,7 +34,7 @@ + # Used in converting lxml Elements into text. + # str - string to convert + def noneStr(str): +- if (str): ++ if (str is not None): + return str + else: + return "" |