diff genshi/path.py @ 230:24757b771651

Renamed Markup to Genshi in repository.
author cmlenz
date Mon, 11 Sep 2006 15:07:07 +0000
parents markup/path.py@f79b20a50919
children 4501f2fef82f
line wrap: on
line diff
copy from markup/path.py
copy to genshi/path.py
--- a/markup/path.py
+++ b/genshi/path.py
@@ -5,15 +5,15 @@
 #
 # This software is licensed as described in the file COPYING, which
 # you should have received as part of this distribution. The terms
-# are also available at http://markup.edgewall.org/wiki/License.
+# are also available at http://genshi.edgewall.org/wiki/License.
 #
 # This software consists of voluntary contributions made by many
 # individuals. For the exact contribution history, see the revision
-# history and logs, available at http://markup.edgewall.org/log/.
+# history and logs, available at http://genshi.edgewall.org/log/.
 
 """Basic support for evaluating XPath expressions against streams.
 
->>> from markup.input import XML
+>>> from genshi.input import XML
 >>> doc = XML('''<doc>
 ...  <items count="2">
 ...       <item status="new">
@@ -34,8 +34,8 @@
 from math import ceil, floor
 import re
 
-from markup.core import Stream, Attrs, Namespace, QName
-from markup.core import START, END, TEXT, COMMENT, PI
+from genshi.core import Stream, Attrs, Namespace, QName
+from genshi.core import START, END, TEXT, COMMENT, PI
 
 __all__ = ['Path', 'PathSyntaxError']
 
@@ -96,7 +96,7 @@
         
         If there are no matches, this method returns an empty stream.
         
-        >>> from markup.input import XML
+        >>> from genshi.input import XML
         >>> xml = XML('<root><elem><child>Text</child></elem></root>')
         
         >>> print Path('.//child').select(xml)
@@ -146,7 +146,7 @@
         If the path matches the event, the function returns the match (for
         example, a `START` or `TEXT` event.) Otherwise, it returns `None`.
         
-        >>> from markup.input import XML
+        >>> from genshi.input import XML
         >>> xml = XML('<root><elem><child id="1"/></elem><child id="2"/></root>')
         >>> test = Path('child').test()
         >>> for kind, data, pos in xml:
Copyright (C) 2012-2017 Edgewall Software