changeset 11:ed106c9df6f3 modularisierung

fixed oopsie
author casties
date Wed, 16 Jun 2010 20:45:16 +0200
parents a5667c023a49
children 3626bbda5a2d
files documentViewer.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/documentViewer.py	Wed Jun 16 20:43:23 2010 +0200
+++ b/documentViewer.py	Wed Jun 16 20:45:16 2010 +0200
@@ -70,7 +70,7 @@
             if sys.version_info < (2, 6):
                 # set timeout on socket -- ugly :-(
                 import socket
-                socket.setdefaulttimeout(timeout)
+                socket.setdefaulttimeout(float(timeout))
                 response = urllib2.urlopen(url)
             else:
                 response = urllib2.urlopen(url,timeout=float(timeout))