[Zodb-checkins] CVS: ZODB3/ZConfig - Common.py:1.5 Config.py:1.13

Fred L. Drake, Jr. fred@zope.com
Wed, 4 Dec 2002 23:44:22 -0500


Update of /cvs-repository/ZODB3/ZConfig
In directory cvs.zope.org:/tmp/cvs-serv32141/ZConfig

Modified Files:
	Common.py Config.py 
Log Message:
Move the asBoolean() helper to where it is actually used, since it is now
only used once within the ZConfig package.


=== ZODB3/ZConfig/Common.py 1.4 => 1.5 ===
--- ZODB3/ZConfig/Common.py:1.4	Fri Nov 22 13:13:32 2002
+++ ZODB3/ZConfig/Common.py	Wed Dec  4 23:44:20 2002
@@ -11,17 +11,6 @@
     False = 0
 
 
-def asBoolean(s):
-    """Convert a string value to a boolean value."""
-    ss = str(s).lower()
-    if ss in ('yes', 'true', 'on'):
-        return True
-    elif ss in ('no', 'false', 'off'):
-        return False
-    else:
-        raise ValueError("not a valid boolean value: " + repr(s))
-
-
 class ConfigurationError(Exception):
     def __init__(self, msg):
         self.message = msg


=== ZODB3/ZConfig/Config.py 1.12 => 1.13 ===
--- ZODB3/ZConfig/Config.py:1.12	Wed Dec  4 17:18:52 2002
+++ ZODB3/ZConfig/Config.py	Wed Dec  4 23:44:20 2002
@@ -202,3 +202,14 @@
                 if s is not default:
                     break
         return s
+
+
+def asBoolean(s):
+    """Convert a string value to a boolean value."""
+    ss = str(s).lower()
+    if ss in ('yes', 'true', 'on'):
+        return True
+    elif ss in ('no', 'false', 'off'):
+        return False
+    else:
+        raise ValueError("not a valid boolean value: " + repr(s))