Fix of issue 3007.

svn: r12620
This commit is contained in:
Peter Landgren 2009-06-03 18:30:42 +00:00
parent ccf9f5b311
commit 1b32bc543c

View File

@ -2113,7 +2113,9 @@ def write_lock_file(name):
except:
user = os.environ.get('USER')
text = "%s@%s" % (user, host)
f.write(_("Locked by %s") % text)
# Save only the username and host, so the massage can be
# printed with correct locale in DbManager.py when a lock is found
f.write(text)
f.close()
if __name__ == "__main__":