Mercurial > public > mercurial-scm > hg
comparison mercurial/hgweb/request.py @ 2394:a8f1049d1d2d
hgweb: fix errors and warnings found by pychecker
- fix missing import
- use type_ instead of type
- remove unused variable
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Sun, 04 Jun 2006 12:19:51 +0200 |
parents | d351a3be3371 |
children | a2df85adface |
comparison
equal
deleted
inserted
replaced
2393:5083cba2a777 | 2394:a8f1049d1d2d |
---|---|
5 # | 5 # |
6 # This software may be used and distributed according to the terms | 6 # This software may be used and distributed according to the terms |
7 # of the GNU General Public License, incorporated herein by reference. | 7 # of the GNU General Public License, incorporated herein by reference. |
8 | 8 |
9 from mercurial.demandload import demandload | 9 from mercurial.demandload import demandload |
10 demandload(globals(), "socket sys cgi os") | 10 demandload(globals(), "socket sys cgi os errno") |
11 from mercurial.i18n import gettext as _ | 11 from mercurial.i18n import gettext as _ |
12 | 12 |
13 class hgrequest(object): | 13 class hgrequest(object): |
14 def __init__(self, inp=None, out=None, env=None): | 14 def __init__(self, inp=None, out=None, env=None): |
15 self.inp = inp or sys.stdin | 15 self.inp = inp or sys.stdin |