[Zope-Checkins] CVS: Zope/lib/python/App - Common.py:1.20

Fred L. Drake, Jr. fred@zope.com
Tue, 11 Feb 2003 13:42:41 -0500


Update of /cvs-repository/Zope/lib/python/App
In directory cvs.zope.org:/tmp/cvs-serv7185

Modified Files:
	Common.py 
Log Message:
more minor cleanup


=== Zope/lib/python/App/Common.py 1.19 => 1.20 ===
--- Zope/lib/python/App/Common.py:1.19	Tue Feb 11 13:24:24 2003
+++ Zope/lib/python/App/Common.py	Tue Feb 11 13:42:40 2003
@@ -15,7 +15,9 @@
 
 __version__='$Revision$'[11:-2]
 
-import sys, os, time
+import os
+import sys
+import time
 
 # Legacy API for this module; 3rd party code may use this.
 from os.path import realpath
@@ -60,10 +62,10 @@
                                                     year,
                                                     hh, mm, ss)
 
-def absattr(attr, c=callable):
+def absattr(attr, callable=callable):
     # Return the absolute value of an attribute,
     # calling the attr if it is callable.
-    if c(attr):
+    if callable(attr):
         return attr()
     return attr