Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Side by Side Diff: visual_studio/NativeClientVSAddIn/InstallerResources/third_party/etree/ElementPath.py

Issue 10908249: Remove windows line ending from repo files (Closed) Base URL: https://github.com/samclegg/nativeclient-sdk.git@master
Patch Set: fix copyright headers Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # 1 #
2 # ElementTree 2 # ElementTree
3 # $Id: ElementPath.py 3375 2008-02-13 08:05:08Z fredrik $ 3 # $Id: ElementPath.py 3375 2008-02-13 08:05:08Z fredrik $
4 # 4 #
5 # limited xpath support for element trees 5 # limited xpath support for element trees
6 # 6 #
7 # history: 7 # history:
8 # 2003-05-23 fl created 8 # 2003-05-23 fl created
9 # 2003-05-28 fl added support for // etc 9 # 2003-05-28 fl added support for // etc
10 # 2003-08-27 fl fixed parsing of periods in element names 10 # 2003-08-27 fl fixed parsing of periods in element names
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 294
295 ## 295 ##
296 # Find text for first matching object. 296 # Find text for first matching object.
297 297
298 def findtext(elem, path, default=None, namespaces=None): 298 def findtext(elem, path, default=None, namespaces=None):
299 try: 299 try:
300 elem = iterfind(elem, path, namespaces).next() 300 elem = iterfind(elem, path, namespaces).next()
301 return elem.text or "" 301 return elem.text or ""
302 except StopIteration: 302 except StopIteration:
303 return default 303 return default
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698