Mercurial > hg > gitweb
comparison mercurial/httprangereader.py @ 1559:59b3639df0a9
Convert all classes to new-style classes by deriving them from object.
author | Eric Hopper <hopper@omnifarious.org> |
---|---|
date | Fri, 18 Nov 2005 22:48:47 -0800 |
parents | 4b0f562c61f4 |
children | f5046cab9e2e |
comparison
equal
deleted
inserted
replaced
1554:68ec7b9e09a4 | 1559:59b3639df0a9 |
---|---|
5 # This software may be used and distributed according to the terms | 5 # This software may be used and distributed according to the terms |
6 # of the GNU General Public License, incorporated herein by reference. | 6 # of the GNU General Public License, incorporated herein by reference. |
7 | 7 |
8 import byterange, urllib2 | 8 import byterange, urllib2 |
9 | 9 |
10 class httprangereader: | 10 class httprangereader(object): |
11 def __init__(self, url): | 11 def __init__(self, url): |
12 self.url = url | 12 self.url = url |
13 self.pos = 0 | 13 self.pos = 0 |
14 def seek(self, pos): | 14 def seek(self, pos): |
15 self.pos = pos | 15 self.pos = pos |