annotate paint/utils.py @ 37:36e70712fc9a

things are just awful
author Jeff Hammel <jhammel@mozilla.com>
date Fri, 30 Mar 2012 15:06:17 -0700
parents a7bf894c96c7
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