Skip to content

Commit

Permalink
Merge pull request Azure#1033 from lmazuel/useragent
Browse files Browse the repository at this point in the history
Add platform in Python UserAgent
  • Loading branch information
tbombach committed May 18, 2016
2 parents 8212eb8 + 927a9d4 commit 35e197f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ClientRuntimes/Python/msrest/msrest/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
except ImportError:
import ConfigParser as configparser
from ConfigParser import NoOptionError
import sys
import platform

import requests

Expand Down Expand Up @@ -68,8 +68,9 @@ def __init__(self, base_url, filepath=None):
self.redirect_policy = ClientRedirectPolicy()

# User-Agent Header
self._user_agent = "python/{} requests/{} msrest/{}".format(
sys.version.split(' ')[0],
self._user_agent = "python/{} ({}) requests/{} msrest/{}".format(
platform.python_version(),
platform.platform(),
requests.__version__,
msrest_version)

Expand Down

0 comments on commit 35e197f

Please sign in to comment.