# HG changeset patch # User Christian Ebert # Date 1171386192 -3600 # Node ID edf9299112d1298997334fe7bba3265044fbe149 # Parent cade80b9d83d8d538ac4b031cfeb55c6554f61b5 Remove extra if-condition for kwtemplater setup in kwfilelog This was over done in last cset, as repo is None by default kwarg, and None may be tested for attribs. diff -r cade80b9d83d -r edf9299112d1 hgkw/keyword.py --- a/hgkw/keyword.py Mon Feb 12 00:40:49 2007 +0100 +++ b/hgkw/keyword.py Tue Feb 13 18:03:12 2007 +0100 @@ -220,7 +220,7 @@ self._repo = repo self._path = path # only init kwtemplater if needed - if repo and hasattr(repo, 'kwfmatcher') and repo.kwfmatcher(path): + if hasattr(repo, 'kwfmatcher') and repo.kwfmatcher(path): self.kwt = kwtemplater(repo.ui, repo) else: self.kwt = None