Procházet zdrojové kódy

HUE-9111 [core] Fix typo in pidfile_context import

z00484332 před 5 roky
rodič
revize
01217c389c
1 změnil soubory, kde provedl 4 přidání a 1 odebrání
  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: