Skip to content

Commit

Permalink
Style(ImportManager): Fixed F811 warning from flake8
Browse files Browse the repository at this point in the history
Redefinition of unused 'join'.
  • Loading branch information
phdru committed Aug 8, 2023
1 parent 18bd7be commit e71b103
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
17 changes: 9 additions & 8 deletions Cheetah/ImportManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,15 @@ def _os_bootstrap():
elif 'mac' in names:
from mac import stat, getcwd

def join(a, b):
if a == '':
return b
if ':' not in a:
a = ':' + a
if a[-1:] != ':':
a = a + ':'
return a + b
if join is None:
def join(a, b):
if a == '':
return b
if ':' not in a:
a = ':' + a
if a[-1:] != ':':
a = a + ':'
return a + b
else:
raise ImportError('no os specific module found')

Expand Down
5 changes: 5 additions & 0 deletions docs/news.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ Bug fixes:

- Fixed printing to stdout in ``CheetahWrapper``.

Code style:

- Fixed a ``F811`` warning from ``flake8``:
redefinition of unused 'join' in ``ImportManager.py``.

CI:

- CI(GHActions): Install all Python and PyPy versions from ``conda-forge``.
Expand Down

0 comments on commit e71b103

Please sign in to comment.