]> arthur.barton.de Git - bup.git/blobdiff - lib/bup/helpers.py
bup: add own gethostname() wrapper
[bup.git] / lib / bup / helpers.py
index 5b0c458f0a8a3abcaf748856a5f89660a90eb971..788efb07a9c4ffb30a414a4cbf6dd211104748ae 100644 (file)
@@ -434,7 +434,7 @@ def hostname():
     """Get the FQDN of this machine."""
     global _hostname
     if not _hostname:
-        _hostname = socket.getfqdn().encode('iso-8859-1')
+        _hostname = _helpers.gethostname()
     return _hostname