more readability for return

This commit is contained in:
Anatoly Bubenkov
2013-12-05 23:22:49 +01:00
parent 152f965a70
commit a3fac52e85

View File

@@ -160,7 +160,7 @@ class HostRSync(execnet.RSync):
for x in self._ignores: for x in self._ignores:
x = getattr(x, 'strpath', x) x = getattr(x, 'strpath', x)
if fnmatch.fnmatch(path.basename, x) or fnmatch.fnmatch(path.strpath, x): if fnmatch.fnmatch(path.basename, x) or fnmatch.fnmatch(path.strpath, x):
break return False
else: else:
return True return True