Red Hat Linux
Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
You seem to have CSS turned off.
Please don't fill out this field.
Briefly describe the problem (required):
Please provide the ad click URL, if possible:
Date: 2008-08-27 01:59:38 +0000 (Wed, 27 Aug 2008)
fix for reading blank files
--- trunk/pyjsl/util.py 2008-08-27 01:58:41 UTC (rev 223)
+++ trunk/pyjsl/util.py 2008-08-27 01:59:38 UTC (rev 224)
@@ -12,7 +12,7 @@
file = codecs.open(path, 'r', 'utf-8')
contents = file.read()
- if contents == unicode(codecs.BOM_UTF8, 'utf8'):
+ if contents and contents == unicode(codecs.BOM_UTF8, 'utf8'):
contents = contents[1:]
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Sign up for the SourceForge newsletter: