From cc43bc2d84d3bf070cc812844b3d72cf134cdb19 Mon Sep 17 00:00:00 2001 From: shenyuhan Date: Mon, 23 Sep 2019 18:28:33 +0800 Subject: [PATCH] fix ci --- paddlehub/commands/hub.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/paddlehub/commands/hub.py b/paddlehub/commands/hub.py index 257afc29..5618a199 100644 --- a/paddlehub/commands/hub.py +++ b/paddlehub/commands/hub.py @@ -19,7 +19,6 @@ from __future__ import print_function import six import sys -import os from paddlehub.common.logger import logger from paddlehub.common.utils import sys_stdin_encoding @@ -30,8 +29,6 @@ from paddlehub.commands import help from paddlehub.commands import version from paddlehub.commands import run from paddlehub.commands import download -from paddlehub.common.lock import lock -from paddlehub.common.dir import CONF_HOME class HubCommand(BaseCommand): @@ -69,10 +66,7 @@ def main(): argv.append(item.decode(sys_stdin_encoding()).decode("utf8")) else: argv.append(item) - fp_lock = open(os.path.join(CONF_HOME, 'config.json')) - lock.flock(fp_lock, lock.LOCK_EX) command.execute(argv[1:]) - lock.flock(fp_lock, lock.LOCK_UN) if __name__ == "__main__": -- GitLab