summary refs log tree commit diff
path: root/synapse/util
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-08-05 16:36:07 +0100
committerErik Johnston <erik@matrix.org>2016-08-05 16:36:07 +0100
commit24f36469bc5c634ff49c87e49e32579d6ac43d7c (patch)
tree4b80da2084c1c9f581162e9dab3fb67693457d67 /synapse/util
parentChange the way we specify if we require auth or not (diff)
downloadsynapse-24f36469bc5c634ff49c87e49e32579d6ac43d7c.tar.xz
Add federation /version API
Diffstat (limited to 'synapse/util')
-rw-r--r--synapse/util/versionstring.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/synapse/util/versionstring.py b/synapse/util/versionstring.py
index a4f156cb3b..52086df465 100644
--- a/synapse/util/versionstring.py
+++ b/synapse/util/versionstring.py
@@ -21,7 +21,7 @@ import logging
 logger = logging.getLogger(__name__)
 
 
-def get_version_string(name, module):
+def get_version_string(module):
     try:
         null = open(os.devnull, 'w')
         cwd = os.path.dirname(os.path.abspath(module.__file__))
@@ -74,11 +74,11 @@ def get_version_string(name, module):
             )
 
             return (
-                "%s/%s (%s)" % (
-                    name, module.__version__, git_version,
+                "%s (%s)" % (
+                    module.__version__, git_version,
                 )
             ).encode("ascii")
     except Exception as e:
         logger.info("Failed to check for git repository: %s", e)
 
-    return ("%s/%s" % (name, module.__version__,)).encode("ascii")
+    return module.__version__.encode("ascii")