# HG changeset patch # User Manuel Jacob <me@manueljacob.de> # Date 1589108505 -7200 # Sun May 10 13:01:45 2020 +0200 # Node ID 083d9683cb51e85cb26781872d6138dc3914de63 # Parent cd32175a996b1bc4e8619b28632449339ae06b37 gitrepo: turn condition into assert diff --git a/hggit/gitrepo.py b/hggit/gitrepo.py --- a/hggit/gitrepo.py +++ b/hggit/gitrepo.py @@ -44,8 +44,8 @@ return self.path def lookup(self, key): - if isinstance(key, bytes): - return key + assert isinstance(key, bytes) + return key def local(self): if not self.path: