Fix of issue 3007.

svn: r12622
This commit is contained in:
Peter Landgren 2009-06-03 18:40:10 +00:00
parent 54dba4fc09
commit 581b33524e

View File

@ -2102,7 +2102,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__":