Author: Maciej Fijalkowski <[email protected]>
Branch: space-iterator-improvements
Changeset: r47158:31445f5be38e
Date: 2011-09-08 09:26 +0200
http://bitbucket.org/pypy/pypy/changeset/31445f5be38e/

Log:    a minor simplification

diff --git a/pypy/interpreter/baseobjspace.py b/pypy/interpreter/baseobjspace.py
--- a/pypy/interpreter/baseobjspace.py
+++ b/pypy/interpreter/baseobjspace.py
@@ -758,7 +758,7 @@
         # If we know the expected length we can preallocate.
         if expected_length == -1:
             try:
-                lgt_estimate = self.int_w(self.len(w_iterable))
+                lgt_estimate = self.len_w(w_iterable)
             except OperationError:
                 items = []
             else:
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to