vendor/zasync/1.1

changeset 10:73c85c78e464 1.1-nux 0.0.2-1.1-nux

(none)
author rspivak
date Tue, 10 Jan 2006 04:25:15 +0000
parents 48efbfbe417f
children 109f234bcce3
files CHANGES manager.py
diffstat 2 files changed, 5 insertions(+), 2 deletions(-) [+]
line diff
     1.1 --- a/CHANGES
     1.2 +++ b/CHANGES
     1.3 @@ -6,7 +6,8 @@
     1.4  -
     1.5  Bug fixes:
     1.6  ~~~~~~~~~~
     1.7 --
     1.8 +- In acceptAll method fixed edge case when _new is empty to prevent slice
     1.9 +  errors.
    1.10  New internal features:
    1.11  ~~~~~~~~~~~~~~~~~~~~~~
    1.12  -
     2.1 --- a/manager.py
     2.2 +++ b/manager.py
     2.3 @@ -778,7 +778,9 @@
     2.4          new = self._new
     2.5          for d in new:
     2.6              self._accepted[d.key] = d
     2.7 -        res = new[:]
     2.8 +        res = []
     2.9 +        if new:
    2.10 +            res = new[:]
    2.11          while new:
    2.12              new.pop(0)
    2.13          return res