xgate1 / pylast

Automatically exported from code.google.com/p/pylast
Apache License 2.0
0 stars 0 forks source link

Replace all print("DeprecationWarning: ...") with warnings.warn(...) #59

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Printing deprecation warnings in libraries isn't all that great. I would 
suggest using http://docs.python.org/library/warnings.html which is the 
standard library way of handling this case. Conveniently it supports both 
DepreciationWarning and PendingDepreciationWarning :)

http://code.google.com/p/pylast/source/browse/trunk/pylast.py#259
http://code.google.com/p/pylast/source/browse/trunk/pylast.py#599
http://code.google.com/p/pylast/source/browse/trunk/pylast.py#674
http://code.google.com/p/pylast/source/browse/trunk/pylast.py#3686
http://code.google.com/p/pylast/source/browse/trunk/pylast.py#3719

Original issue reported on code.google.com by tadam...@gmail.com on 21 Jan 2011 at 11:10

GoogleCodeExporter commented 8 years ago

Original comment by amr.hassan on 22 Jan 2011 at 12:04

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r248.

Original comment by amr.hassan on 22 Jan 2011 at 1:28

GoogleCodeExporter commented 8 years ago
Thank you for taking the time to report this :)

Original comment by amr.hassan on 22 Jan 2011 at 1:28