/usr/lib/python2.7/dist-packages/openpyxl/descriptors/namespace.py is in python-openpyxl 2.4.9-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 | from __future__ import absolute_import
# copyright openpyxl 2010-2015
def namespaced(obj, tagname, namespace=None):
"""
Utility to create a namespaced tag for an object
"""
namespace = getattr(obj, "namespace", namespace)
if namespace is not None:
tagname = "{%s}%s" % (namespace, tagname)
return tagname
|