Pārlūkot izejas kodu

HUE-9111 [core] Fix typo in pidfile_context import

z00484332 5 gadi atpakaļ
vecāks
revīzija
01217c389c
1 mainītis faili ar 4 papildinājumiem un 1 dzēšanām
  1. 4 1
      desktop/core/src/desktop/supervisor.py

+ 4 - 1
desktop/core/src/desktop/supervisor.py

@@ -323,7 +323,10 @@ def main():
   setup_user_info()
 
   pid_file = os.path.abspath(os.path.join(root, options.pid_file))
-  pidfile_context = TimeOutPIDLockFile(pid_file, LOCKFILE_TIMEOUT)
+  if sys.version_info[0] > 2:
+    pidfile_context = TimeoutPIDLockFile(pid_file, LOCKFILE_TIMEOUT)
+  else:
+    pidfile_context = TimeOutPIDLockFile(pid_file, LOCKFILE_TIMEOUT)
 
   existing_pid = pidfile_context.read_pid()
   if existing_pid: