Преглед на файлове

Drop compatibility replacement for 'all'.

Jelmer Vernooij преди 11 години
родител
ревизия
9d554c7968
променени са 2 файла, в които са добавени 0 реда и са изтрити 17 реда
  1. 0 14
      dulwich/_compat.py
  2. 0 3
      dulwich/walk.py

+ 0 - 14
dulwich/_compat.py

@@ -47,20 +47,6 @@ def make_sha(source=''):
         return sha1
 
 
-try:
-    all = all
-except NameError:
-    # Implementation of all from Python 2.6 documentation:
-    # http://docs.python.org/2.6/library/functions.html#all
-    # Copyright (c) 2001-2010 Python Software Foundation; All Rights Reserved
-    # Licensed under the Python Software Foundation License.
-    def all(iterable):
-        for element in iterable:
-            if not element:
-                return False
-        return True
-
-
 try:
     from collections import namedtuple
 except ImportError:

+ 0 - 3
dulwich/walk.py

@@ -25,9 +25,6 @@ import collections
 import heapq
 import itertools
 
-from dulwich._compat import (
-    all,
-    )
 from dulwich.diff_tree import (
     RENAME_CHANGE_TYPES,
     tree_changes,