Ori.livneh has uploaded a new change for review. https://gerrit.wikimedia.org/r/225647
Change subject: Add '__version__' and 'USER_AGENT_STRING' ...................................................................... Add '__version__' and 'USER_AGENT_STRING' Define '__version__' so we can incorporate it in the user-agent string. Define a user-agent string so that we can set one consistently for all HTTP clients within PyBal. Change-Id: I2e382cc72148f9023f17c60d1f3e6472e65fef1c --- M pybal/__init__.py 1 file changed, 6 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/operations/debs/pybal refs/changes/47/225647/1 diff --git a/pybal/__init__.py b/pybal/__init__.py index 0a76536..2bc6fd0 100644 --- a/pybal/__init__.py +++ b/pybal/__init__.py @@ -6,4 +6,9 @@ """ import test -__all__ = [ 'ipvs', 'monitor', 'pybal', 'util', 'monitors', 'bgp' ] +__version__ = '1.6' + +USER_AGENT_STRING = 'PyBal/%s' % __version__ + +__all__ = ('ipvs', 'monitor', 'pybal', 'util', 'monitors', 'bgp', + 'USER_AGENT_STRING') -- To view, visit https://gerrit.wikimedia.org/r/225647 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I2e382cc72148f9023f17c60d1f3e6472e65fef1c Gerrit-PatchSet: 1 Gerrit-Project: operations/debs/pybal Gerrit-Branch: master Gerrit-Owner: Ori.livneh <o...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits