summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pyramid/tweens.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/pyramid/tweens.py b/pyramid/tweens.py
index 2b0ce3927..54da9b15a 100644
--- a/pyramid/tweens.py
+++ b/pyramid/tweens.py
@@ -176,15 +176,12 @@ class Tweens(object):
return handler
def tween_factory_name(factory):
- if (hasattr(factory, '__name__') and
- hasattr(factory, '__module__')):
+ if (hasattr(factory, '__name__') and hasattr(factory, '__module__')):
# function or class
- name = '.'.join([factory.__module__,
- factory.__name__])
+ name = '.'.join([factory.__module__, factory.__name__])
elif hasattr(factory, '__module__'):
# instance
- name = '.'.join([factory.__module__,
- factory.__class__.__name__,
+ name = '.'.join([factory.__module__, factory.__class__.__name__,
str(id(factory))])
else:
raise ConfigurationError(