summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Merickel <michael@merickel.org>2013-08-13 23:29:41 -0500
committerMichael Merickel <michael@merickel.org>2013-08-13 23:30:31 -0500
commit1378f1f9dc704d3939bd4bab8642d57a908cab8d (patch)
tree999da41f3efad60189cca3d81ba0bfdcbd878c28
parentca33b9a632c5cd97d5de1e375c5992f7dd4f6323 (diff)
downloadpyramid-1378f1f9dc704d3939bd4bab8642d57a908cab8d.tar.gz
pyramid-1378f1f9dc704d3939bd4bab8642d57a908cab8d.tar.bz2
pyramid-1378f1f9dc704d3939bd4bab8642d57a908cab8d.zip
remove some dead code
-rw-r--r--pyramid/util.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/pyramid/util.py b/pyramid/util.py
index 02bd7ba2a..98732d17f 100644
--- a/pyramid/util.py
+++ b/pyramid/util.py
@@ -69,17 +69,12 @@ class InstancePropertyMixin(object):
can accept multiple ``(name, property)`` pairs generated via
:meth:`pyramid.util.InstancePropertyMixin._make_property`.
- ``attrs`` is a sequence of 2-tuples *or* a data structure with
- an ``.items()`` method which returns a sequence of 2-tuples
+ ``properties`` is a sequence of two-tuples *or* a data structure
+ with an ``.items()`` method which returns a sequence of two-tuples
(presumably a dictionary). It will be used to add several
properties to the instance in a manner that is more efficient
than simply calling ``set_property`` repeatedly.
"""
-
- if hasattr(properties, 'items'):
- attrs = properties.items()
- else:
- attrs = properties
attrs = dict(properties)
parent = self.__class__