~widelands-dev/widelands-website/trunk

« back to all changes in this revision

Viewing changes to notification/lockfile.py

  • Committer: franku
  • Date: 2019-04-11 15:06:09 UTC
  • mto: This revision was merged to the branch mainline in revision 540.
  • Revision ID: somal@arcor.de-20190411150609-801l72ffxgr6gkui
converted to python 3.6 using 2to3 script

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
            NotMyLock - File was locked but not by the current thread/process
49
49
"""
50
50
 
51
 
from __future__ import division
 
51
 
52
52
 
53
53
import sys
54
54
import socket
385
385
 
386
386
    def __init__(self, path, threaded=True):
387
387
        LockBase.__init__(self, path, threaded)
388
 
        self.lock_file = unicode(self.lock_file)
389
 
        self.unique_name = unicode(self.unique_name)
 
388
        self.lock_file = str(self.lock_file)
 
389
        self.unique_name = str(self.unique_name)
390
390
 
391
391
        import sqlite3
392
392
        self.connection = sqlite3.connect(SQLiteFileLock.testdb)