Skip to content

Commit 614c438

Browse files
committed
Cosmetics.
1 parent ccd35ae commit 614c438

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/commoncode/command.py

+5-7
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,14 @@
4848
- a distributed scancode package is self-contained
4949
- a non technical user does not have any extra installation to do, in
5050
particular there is no compilation needed at installation time.
51-
5251
- we have few dependencies on the OS.
53-
54-
- that we control closely the version of these executables and how they were
52+
- we control closely the version of these executables and how they were
5553
built to ensure sanity, especially on Linux where several different
5654
(oftentimes older) version may exist in the path for a given distro.
5755
For instance this applies to tools such as 7z, binutils and file.
5856
"""
5957

60-
LOG = logging.getLogger(__name__)
58+
logger = logging.getLogger(__name__)
6159

6260
# current directory is the root dir of this library
6361
curr_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
@@ -93,9 +91,9 @@ def execute(cmd, args, root_dir=None, cwd=None, env=None, to_files=False):
9391
# though we can execute command that just happen to be in the path
9492
shell = True if on_windows else False
9593

96-
LOG.debug('Executing command %(cmd)r as %(full_cmd)r with: env=%(env)r, '
97-
'shell=%(shell)r, cwd=%(cwd)r, stdout=%(sop)r, stderr=%(sep)r.'
98-
% locals())
94+
logger.debug('Executing command %(cmd)r as %(full_cmd)r with: env=%(env)r, '
95+
'shell=%(shell)r, cwd=%(cwd)r, stdout=%(sop)r, stderr=%(sep)r.'
96+
% locals())
9997

10098
proc = None
10199
try:

0 commit comments

Comments
 (0)