Mercurial > public > mercurial-scm > hg
comparison mercurial/util.py @ 23139:e53f6b72a0e4
spelling: fixes from proofreading of spell checker issues
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Thu, 17 Apr 2014 22:47:38 +0200 |
parents | 30124c40d11f |
children | 565f97e71ce3 |
comparison
equal
deleted
inserted
replaced
23136:6eab50a34fed | 23139:e53f6b72a0e4 |
---|---|
1146 | 1146 |
1147 def read(self, l=None): | 1147 def read(self, l=None): |
1148 """Read L bytes of data from the iterator of chunks of data. | 1148 """Read L bytes of data from the iterator of chunks of data. |
1149 Returns less than L bytes if the iterator runs dry. | 1149 Returns less than L bytes if the iterator runs dry. |
1150 | 1150 |
1151 If size parameter is ommited, read everything""" | 1151 If size parameter is omitted, read everything""" |
1152 left = l | 1152 left = l |
1153 buf = [] | 1153 buf = [] |
1154 queue = self._queue | 1154 queue = self._queue |
1155 while left is None or left > 0: | 1155 while left is None or left > 0: |
1156 # refill the queue | 1156 # refill the queue |