[Zope3-checkins] CVS: Zope3/src/zope/publisher - browser.py:1.11
Steve Alexander
steve@cat-box.net
Mon, 7 Apr 2003 07:27:02 -0400
Update of /cvs-repository/Zope3/src/zope/publisher
In directory cvs.zope.org:/tmp/cvs-serv23694/src/zope/publisher
Modified Files:
browser.py
Log Message:
Exchanged some map(lambda expressions for more readable list
comprehensions.
=== Zope3/src/zope/publisher/browser.py 1.10 => 1.11 ===
--- Zope3/src/zope/publisher/browser.py:1.10 Thu Mar 6 17:48:03 2003
+++ Zope3/src/zope/publisher/browser.py Mon Apr 7 07:27:01 2003
@@ -218,13 +218,12 @@
def __str__(self):
L1 = self.__dict__.items()
L1.sort()
- return ", ".join(map(lambda item: "%s: %s" % item, L1))
+ return ", ".join(["%s: %s" for item in L1])
def __repr__(self):
L1 = self.__dict__.items()
L1.sort()
- return ', '.join(
- map(lambda item: "%s: %s" % (item[0], repr(item[1])), L1))
+ return ', '.join(["%s: %s" % (key, repr(value)) for key, value in L1])
class BrowserRequest(HTTPRequest):