Mercurial > public > mercurial-scm > hg
diff mercurial/hgweb/hgweb_mod.py @ 4874:d9e385a7a806
Use isinstance instead of type == type
author | Christian Ebert <blacktrash@gmx.net> |
---|---|
date | Fri, 06 Jul 2007 12:02:43 +0200 |
parents | 419a6f715c6a |
children | 97b734fb9c6f |
line wrap: on
line diff
--- a/mercurial/hgweb/hgweb_mod.py Fri Jul 13 08:28:57 2007 -0700 +++ b/mercurial/hgweb/hgweb_mod.py Fri Jul 06 12:02:43 2007 +0200 @@ -64,7 +64,7 @@ class hgweb(object): def __init__(self, repo, name=None): - if type(repo) == type(""): + if isinstance(repo, str): self.repo = hg.repository(ui.ui(report_untrusted=False), repo) else: self.repo = repo