/usr/share/pyshared/juju/lib/under.py is in juju-0.7 0.7-0ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 | import string
_SAFE_CHARS = set(string.ascii_letters + string.digits + ".-")
_CHAR_MAP = {}
for i in range(256):
c = chr(i)
_CHAR_MAP[c] = c if c in _SAFE_CHARS else "_%02x_" % i
_quote_char = _CHAR_MAP.__getitem__
def quote(unsafe):
return "".join(map(_quote_char, unsafe))
|