Author: tack
Date: Wed Apr 11 17:48:13 2007
New Revision: 2616

Modified:
   trunk/epg/src/sources/xmltv.py

Log:
More pythonic.


Modified: trunk/epg/src/sources/xmltv.py
==============================================================================
--- trunk/epg/src/sources/xmltv.py      (original)
+++ trunk/epg/src/sources/xmltv.py      Wed Apr 11 17:48:13 2007
@@ -172,7 +172,7 @@
             tz   = str(-time.timezone/3600)
 
         # Is it the '+1' format?
-        if tz and (tz[0] == '+' or tz[0] == '-'):
+        if tz and tz[0] in ('+', '-'):
             tmTuple = ( int(tval[0:4]), int(tval[4:6]), int(tval[6:8]),
                         int(tval[8:10]), int(tval[10:12]), 0, -1, -1, -1 )
             secs = calendar.timegm( tmTuple )

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to