hgext/largefiles/lfutil.py
branchstable
changeset 15319 9da7e96cd5c2
parent 15317 41f371150ccb
child 15320 681267a5f491
--- a/hgext/largefiles/lfutil.py	Thu Oct 20 09:35:37 2011 -0500
+++ b/hgext/largefiles/lfutil.py	Wed Oct 19 20:40:55 2011 -0400
@@ -436,13 +436,7 @@
 
 def islfilesrepo(repo):
     return ('largefiles' in repo.requirements and
-            any_(shortname + '/' in f[0] for f in repo.store.datafiles()))
-
-def any_(gen):
-    for x in gen:
-        if x:
-            return True
-    return False
+            util.any(shortname + '/' in f[0] for f in repo.store.datafiles()))
 
 class storeprotonotcapable(BaseException):
     def __init__(self, storetypes):