> where line 175 is the assignment to self.unique_name. After a little
> back-and-forth with his user it turns out that her computer's hostname
> contains non-ASCII data, so presumably self.hostname is a unicode object.
Most likely, it is not. It's rather the hostname encoded in the ANSI
code pag
In my lockfile module I generate a unique name like so:
self.path = path
self.lock_file = os.path.abspath(path) + ".lock"
self.hostname = socket.gethostname()
self.pid = os.getpid()
if threaded:
name = threading.current_thread().get_name()
tname = "%s-" % quote(