Closed GoogleCodeExporter closed 9 years ago
I've also just noticed that in iplayer_search::delete_search() there are a
couple of print() statements that are probably meant to help with debugging
that should be converted to utils.log() statements, or eliminated completely.
I've attached an updated patch with the two print() statements removed.
Original comment by n...@nmacleod.com
on 30 Apr 2014 at 10:33
Attachments:
added in r163 thanks.
Probably correct in that support for python 2.5 and lower is not needed. Even
the upcoming release of xbmc on the xbox has python 2.7
No harm in leaving it in for now, but I guess at some point we can remove
compatibility.
Original comment by exob...@gmail.com
on 3 May 2014 at 5:57
Re-opening as the patch doesn't look right. Also there are deprecation warnings
on python 2.5 not just 2.6+
I think it should be
Index: lib/iplayer2.py
===================================================================
--- lib/iplayer2.py (revision 169)
+++ lib/iplayer2.py (working copy)
@@ -16,7 +16,7 @@
import stations
try:
- from hashlib import _md5
+ from hashlib import md5 as _md5
except:
# use md5 for python 2.5 compat
import md5
Original comment by exob...@gmail.com
on 6 May 2014 at 8:16
I have committed this change in r170 - please do get back to me if this seems
ok.
Original comment by exob...@gmail.com
on 6 May 2014 at 8:18
Seems that we do need to support python 2.5 for now as it is in use by some
Android users.
Original comment by exob...@gmail.com
on 6 May 2014 at 8:20
Eugh... the duff syntax of mine in the old patch is throwing an exception while
importing hashlib, so consequently md5 is always imported... :(
Good catch, thanks for the fix.
Original comment by n...@nmacleod.com
on 6 May 2014 at 8:33
Original comment by exob...@gmail.com
on 6 May 2014 at 9:36
Original issue reported on code.google.com by
n...@nmacleod.com
on 30 Apr 2014 at 10:23Attachments: