mercurial/byterange.py
changeset 10905 13a1b2fb7ef2
parent 10282 08a0f04b56bd
child 14764 a7d5816087a9
equal deleted inserted replaced
10903:cd21bf199d17 10905:13a1b2fb7ef2
    22 import os
    22 import os
    23 import stat
    23 import stat
    24 import urllib
    24 import urllib
    25 import urllib2
    25 import urllib2
    26 import email.Utils
    26 import email.Utils
    27 
       
    28 try:
       
    29     from cStringIO import StringIO
       
    30 except ImportError, msg:
       
    31     from StringIO import StringIO
       
    32 
    27 
    33 class RangeError(IOError):
    28 class RangeError(IOError):
    34     """Error raised when an unsatisfiable range is requested."""
    29     """Error raised when an unsatisfiable range is requested."""
    35     pass
    30     pass
    36 
    31