annotate paint/utils.py @ 77:00c0f668f332

implementation of setup2metadata
author Jeff Hammel <jhammel@mozilla.com>
date Sun, 27 Jan 2013 22:19:10 -0800
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