[Zope3-checkins] CVS: Packages/ZConfig - Substitution.py:1.5

Fred L. Drake, Jr. fred@zope.com
Mon, 2 Dec 2002 17:55:09 -0500


Update of /cvs-repository/Packages/ZConfig
In directory cvs.zope.org:/tmp/cvs-serv27811

Modified Files:
	Substitution.py 
Log Message:
Added an explanatory comment.


=== Packages/ZConfig/Substitution.py 1.4 => 1.5 ===
--- Packages/ZConfig/Substitution.py:1.4	Mon Dec  2 17:52:27 2002
+++ Packages/ZConfig/Substitution.py	Mon Dec  2 17:55:08 2002
@@ -77,6 +77,11 @@
 
 
 def _split(s, context=None):
+    # Return a triple:  prefix, name, suffix
+    # - prefix is text that can be used literally in the result (may be '')
+    # - name is a referenced name, or None
+    # - suffix is trailling text that may contain additional references
+    #   (may be '' or None)
     if "$" in s:
         i = s.find("$")
         c = s[i+1:i+2]