File: __init__.py

package info (click to toggle)
python-xsdata 24.1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,936 kB
  • sloc: python: 29,257; xml: 404; makefile: 27; sh: 6
file content (6 lines) | stat: -rw-r--r-- 159 bytes parent folder | download
1
2
3
4
5
6
from urllib.request import build_opener

from xsdata import __version__

opener = build_opener()
opener.addheaders = [("User-agent", f"xsdata/{__version__}")]