Files
aufbau2csv/venv/lib/python3.12/site-packages/openpyxl/descriptors/namespace.py
Sven Riwoldt f7f8c52455 init
2024-10-19 12:31:37 +02:00

13 lines
313 B
Python

# Copyright (c) 2010-2024 openpyxl
def namespaced(obj, tagname, namespace=None):
"""
Utility to create a namespaced tag for an object
"""
namespace = getattr(obj, "namespace", None) or namespace
if namespace is not None:
tagname = "{%s}%s" % (namespace, tagname)
return tagname