comparison mercurial/httpconnection.py @ 28526:47b0cee25e88

httpconnection: remove obsolete comment about open() When httpsendfile was moved from url.py into httpconnection.py in e7525a555a64 (url: use new http support if requested by the user, 2011-05-06), the comment about not being able to just call open() became obsolete.
author Martin von Zweigbergk <martinvonz@google.com>
date Mon, 14 Mar 2016 14:08:28 -0700
parents b1adf32b0605
children 032c4c2f802a
comparison
equal deleted inserted replaced
28525:dfb21c34e07d 28526:47b0cee25e88
31 It do however not define a __len__ attribute because the length 31 It do however not define a __len__ attribute because the length
32 might be more than Py_ssize_t can handle. 32 might be more than Py_ssize_t can handle.
33 """ 33 """
34 34
35 def __init__(self, ui, *args, **kwargs): 35 def __init__(self, ui, *args, **kwargs):
36 # We can't just "self._data = open(*args, **kwargs)" here because there
37 # is an "open" function defined in this module that shadows the global
38 # one
39 self.ui = ui 36 self.ui = ui
40 self._data = open(*args, **kwargs) 37 self._data = open(*args, **kwargs)
41 self.seek = self._data.seek 38 self.seek = self._data.seek
42 self.close = self._data.close 39 self.close = self._data.close
43 self.write = self._data.write 40 self.write = self._data.write