~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to urlgrabber/keepalive.py

  • Committer: Aaron Bentley
  • Date: 2005-08-10 15:05:26 UTC
  • mto: (1092.1.41) (1185.3.4) (974.1.47)
  • mto: This revision was merged to the branch mainline in revision 1110.
  • Revision ID: abentley@panoramicfeedback.com-20050810150526-468a7e2e3dc299e4
Switched to using a set of interesting file_ids instead of SourceFile attribute

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
 
_python_version = map(int, sys.version.split()[0].split('.'))
 
113
if hasattr(sys, 'version_info'):
 
114
    _python_version = sys.version_info
 
115
else:
 
116
    _python_version = map(int, sys.version.split()[0].split('.'))
114
117
if _python_version < [2, 4]: HANDLE_ERRORS = 1
115
118
else: HANDLE_ERRORS = 0
116
119