annotate paint/utils.py @ 83:7f442f585580

paint/package.py
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 17 Sep 2013 16:04:05 -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