~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to urlgrabber/keepalive.py

  • Committer: mbp at sourcefrog
  • Date: 2005-04-08 22:14:09 UTC
  • Revision ID: mbp@sourcefrog.net-20050408221409-a99bd4796a56f42edbf3f13a
selected-file diff

Show diffs side-by-side

added added

removed removed

Lines of Context:
110
110
def DBPRINT(*args): print ' '.join(args)
111
111
 
112
112
import sys
113
 
if hasattr(sys, 'version_info'):
114
 
    _python_version = sys.version_info
115
 
else:
116
 
    _python_version = map(int, sys.version.split()[0].split('.'))
 
113
_python_version = map(int, sys.version.split()[0].split('.'))
117
114
if _python_version < [2, 4]: HANDLE_ERRORS = 1
118
115
else: HANDLE_ERRORS = 0
119
116