Skip to content

Commit

Permalink
Include Python version in user-agent string
Browse files Browse the repository at this point in the history
  • Loading branch information
atodorov committed Jan 8, 2024
1 parent 2d5f1ab commit c32cb52
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tcms_api/xmlrpc.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# pylint: disable=protected-access,too-few-public-methods

import sys
import urllib.parse

from base64 import b64encode
Expand Down Expand Up @@ -33,7 +34,7 @@ class CookieTransport(Transport):
"""A subclass of xmlrpc.client.Transport that supports cookies."""

scheme = "http"
user_agent = f"tcms-api/{__version__}"
user_agent = f"tcms-api/{__version__}/Python {sys.version}"

def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
Expand Down

0 comments on commit c32cb52

Please sign in to comment.