[Community] Deprecation warning fixed

Ole Nielsen ole.nielsen at aifdr.org
Thu Aug 5 07:57:00 EEST 2010


Dear OWSLib developers

We are using the library successfully with Geoserver, but get the following annoying warning when calling WebCoverageService():

/usr/local/lib/python2.6/dist-packages/OWSLib-0.3.2beta-py2.6.egg/owslib/coverage/wcsBase.py:33: DeprecationWarning: object.__new__() takes no parameters
  obj=object.__new__(self, url, xml ,cookies)

Fixing this was a simple matter of removing those arguments (as suggested in the warning).
I have attached the updated version of wcsBase.py for your consideration.

We are using OWSLib from the repository with SVN revision number 1672 and Python version 2.6x

Cheers
Ole


Dr Ole Nielsen
Numerical Modeller
Australia-Indonesia Facility for Disaster Reduction
Mobile: +62 811 820 4637 | Phone: +62 21 398 30088 x1007 | Fax: +62 21 398 30068

[cid:image001.jpg at 01CB3495.500F9100]


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gispython.org/pipermail/community/attachments/20100805/5b61a1f5/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 16939 bytes
Desc: image001.jpg
URL: <http://lists.gispython.org/pipermail/community/attachments/20100805/5b61a1f5/attachment-0001.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wcsBase.py
Type: application/octet-stream
Size: 6880 bytes
Desc: wcsBase.py
URL: <http://lists.gispython.org/pipermail/community/attachments/20100805/5b61a1f5/attachment-0001.obj>


More information about the Community mailing list