/[ascend]/trunk/pygtk/versioncheck.py
ViewVC logotype

Diff of /trunk/pygtk/versioncheck.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 929 by johnpye, Thu Oct 26 00:58:49 2006 UTC revision 930 by johnpye, Wed Nov 22 13:09:09 2006 UTC
# Line 1  Line 1 
1  import urllib2, ConfigParser, platform  import urllib2, ConfigParser, platform
2    import socket
3    
4  class VersionCheck:  class VersionCheck:
5      def __init__(self):      def __init__(self):
# Line 8  class VersionCheck: Line 8  class VersionCheck:
8          self.latest = None          self.latest = None
9          self.info = None          self.info = None
10      def check(self):      def check(self):
11            socket.setdefaulttimeout(1)
12          auth_handler = urllib2.HTTPBasicAuthHandler()          auth_handler = urllib2.HTTPBasicAuthHandler()
13          opener = urllib2.build_opener(auth_handler)          opener = urllib2.build_opener(auth_handler)
14          urllib2.install_opener(opener)          urllib2.install_opener(opener)

Legend:
Removed from v.929  
changed lines
  Added in v.930

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22