Skip to content
Snippets Groups Projects
Commit f62b3275 authored by Thomas Jürges's avatar Thomas Jürges
Browse files

SW-612: Correct tab/space and time.sleep use

parent 8b16e1b9
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,6 @@
from itertools import islice, repeat, chain
from contextlib import closing, contextmanager
from time import sleep
from random import randint
import warnings
......@@ -19,6 +18,7 @@ import os
import errno
import shutil
import sys
import time
try:
import subprocess27 as subprocess
......@@ -253,7 +253,7 @@ def spawn_process(cmd, logger, cwd = None, env = None, max_tries = 2, max_timeou
(timeout, max_tries - trycounter - 1)
)
trycounter += 1
sleep(timeout)
time.sleep(timeout)
else:
raise
else:
......@@ -278,7 +278,6 @@ def catch_segfaults(cmd, cwd, env, logger, max = 1, cleanup = lambda: None,
usageStats.addPID(process.pid)
if 'casa' in cmd[0]:
import time
while process.returncode is None:
process.poll()
time.sleep(1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment