Skip to content

Commit

Permalink
Formatting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
wummel committed Jan 26, 2024
1 parent 6e326d7 commit 9b20617
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion patoolib/fileutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ def stripext(filename):
"""Return the basename without extension of given filename
For compressed TAR archives, the filename without the .tar
extension is returned, ie. output of 'a.tar.xz' will be
'a'."""
'a'.
"""
basename, _ = os.path.splitext(os.path.basename(filename))
if basename.endswith(".tar") and basename != ".tar":
basename, _ = os.path.splitext(basename)
Expand Down

0 comments on commit 9b20617

Please sign in to comment.