Code cleanup.
This commit is contained in:
parent
8ed2392f46
commit
c5f1dc543b
|
@ -359,9 +359,6 @@ def stripext (filename):
|
||||||
def get_single_outfile (directory, archive, extension=""):
|
def get_single_outfile (directory, archive, extension=""):
|
||||||
"""Get output filename if archive is in a single file format like gzip."""
|
"""Get output filename if archive is in a single file format like gzip."""
|
||||||
outfile = os.path.join(directory, stripext(archive))
|
outfile = os.path.join(directory, stripext(archive))
|
||||||
if is_same_filename(archive, outfile):
|
|
||||||
# prevent overwriting the archive itself
|
|
||||||
extension = ".raw"
|
|
||||||
if os.path.exists(outfile + extension):
|
if os.path.exists(outfile + extension):
|
||||||
# prevent overwriting existing files
|
# prevent overwriting existing files
|
||||||
i = 1
|
i = 1
|
||||||
|
|
Loading…
Reference in New Issue