mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 13:23:18 -07:00
Convert to new-style class by inheriting from object
This commit is contained in:
parent
8434fd5419
commit
76a00b2493
5 changed files with 8 additions and 8 deletions
|
@ -1229,7 +1229,7 @@ def get_downloadInfo(inputName, status):
|
|||
return sqlResults
|
||||
|
||||
|
||||
class RunningProcess():
|
||||
class RunningProcess(object):
|
||||
""" Limits application to single instance """
|
||||
|
||||
def __init__(self):
|
||||
|
@ -1245,7 +1245,7 @@ class RunningProcess():
|
|||
# self.process.__del__()
|
||||
|
||||
|
||||
class WindowsProcess():
|
||||
class WindowsProcess(object):
|
||||
def __init__(self):
|
||||
self.mutexname = "nzbtomedia_" + core.PID_FILE.replace('\\', '/') # {D0E858DF-985E-4907-B7FB-8D732C3FC3B9}"
|
||||
if platform.system() == 'Windows':
|
||||
|
@ -1271,7 +1271,7 @@ class WindowsProcess():
|
|||
self.CloseHandle(self.mutex)
|
||||
|
||||
|
||||
class PosixProcess():
|
||||
class PosixProcess(object):
|
||||
def __init__(self):
|
||||
self.pidpath = core.PID_FILE
|
||||
self.lock_socket = None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue