Formatting

This commit is contained in:
Andrew Burkett 2019-12-24 11:45:23 -08:00
parent 877b1c440e
commit f8dec72e98
1 changed files with 2 additions and 2 deletions

View File

@ -1,9 +1,9 @@
import collections import collections
import fcntl
import json import json
import logging import logging
import os import os
import sys import sys
import fcntl
from subprocess import CalledProcessError from subprocess import CalledProcessError
import colorama import colorama
@ -55,7 +55,7 @@ def run_configuration(config_filename, config, arguments):
encountered_error = None encountered_error = None
error_repository = '' error_repository = ''
if location.get("lock_client",False): if location.get("lock_client", False):
lock_f = open(config_filename) lock_f = open(config_filename)
try: try:
fcntl.flock(lock_f.fileno(), fcntl.LOCK_EX | fcntl.LOCK_NB) fcntl.flock(lock_f.fileno(), fcntl.LOCK_EX | fcntl.LOCK_NB)