From: Mark Wooding Date: Thu, 28 Mar 2013 00:05:01 +0000 (+0000) Subject: agpl.py (filez): Slightly better detection of toplevels. X-Git-Tag: 1.0.0~3 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/chopwood/commitdiff_plain/fde8f8a7aef47d31546f2a38054db7704c32a47f agpl.py (filez): Slightly better detection of toplevels. --- diff --git a/agpl.py b/agpl.py index b49153b..caed713 100644 --- a/agpl.py +++ b/agpl.py @@ -142,7 +142,7 @@ def filez(cmd): if z < 0: break f = buf[i:z] i = z + 1 - if f == '.': continue + if f.rstrip('/') == '.': continue if f.startswith('./'): f = f[2:] yield f