annotate paint/utils.py @ 7:a7bf894c96c7

yet more stubbing
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 23 Feb 2012 17:41:54 -0800
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
a7bf894c96c7 yet more stubbing
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
1 """
a7bf894c96c7 yet more stubbing
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
2 utility methods for PaInt
a7bf894c96c7 yet more stubbing
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
3 """
a7bf894c96c7 yet more stubbing
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
4
a7bf894c96c7 yet more stubbing
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
5 # TODO: in general, these should be upstreamed to
a7bf894c96c7 yet more stubbing
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
6 # python's standard library or equivalent methods
a7bf894c96c7 yet more stubbing
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
7 # from python's standard library used instead of
a7bf894c96c7 yet more stubbing
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
8 # having yet another utils.py file.
a7bf894c96c7 yet more stubbing
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
9
a7bf894c96c7 yet more stubbing
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
10 # Until that magical day, we'll put them here
a7bf894c96c7 yet more stubbing
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
11
a7bf894c96c7 yet more stubbing
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
12 def isURL(path_spec):
a7bf894c96c7 yet more stubbing
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
13 return '://' in path_spec