Mercurial > ~astiob > upreckon > hgweb
changeset 245:6dd29475ae9b
Removed useless conditions in files.File._realize_path
author | Oleg Oshmyan <chortos@inbox.lv> |
---|---|
date | Wed, 02 Oct 2013 23:32:37 +0300 |
parents | 67fd512bb54a |
children | f5847d29e838 |
files | upreckon/files.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/upreckon/files.py Wed Oct 02 23:03:37 2013 +0300 +++ b/upreckon/files.py Wed Oct 02 23:32:37 2013 +0300 @@ -279,11 +279,11 @@ return None cand = (self + virtpath[0])._realize_path(virtpath[1:], allow_root) if cand: return cand - if not cand and not self._has_tests: + if not self._has_tests: for metafile in self._add_tests(): cand = metafile._realize_path(virtpath, allow_root) if cand: return cand - if not cand and len(virtpath) > 1: + if len(virtpath) > 1: metafile = self._add_virtual(virtpath[0]) cand = metafile._realize_path(virtpath[1:], allow_root) if cand: return cand