/usr/lib/python2.7/dist-packages/couchdb/util2.py is in python-couchdb 0.10-1.1.
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 13 14 15 16 17 18 19 20 21 | __all__ = [
'StringIO', 'urlsplit', 'urlunsplit', 'urlquote', 'urlunquote',
'urlencode', 'utype', 'ltype', 'pyexec', 'strbase', 'funcode',
'urlparse',
]
utype = unicode
ltype = long
strbase = str, bytes, unicode
from io import BytesIO as StringIO
from urlparse import urlparse, urlsplit, urlunsplit
from urllib import quote as urlquote
from urllib import unquote as urlunquote
from urllib import urlencode
def pyexec(code, gns, lns):
exec code in gns, lns
def funcode(fun):
return fun.func_code
|