Browse Source

..

pull/6/head
Mathias Markl 6 years ago
parent
commit
2e885c7415
  1. 2
      muk_utils/tools/utils_os.py

2
muk_utils/tools/utils_os.py

@ -48,7 +48,7 @@ def unique_name(name, names, escape_suffix=False):
name = compute_name(name, suffix, escape_suffix) name = compute_name(name, suffix, escape_suffix)
return name return name
def get_extension(filename, mimetype):
def get_extension(binary, filename, mimetype):
if not mimetype and not filename: if not mimetype and not filename:
mimetype = guess_mimetype(binary, default=False) mimetype = guess_mimetype(binary, default=False)
if not mimetype and filename: if not mimetype and filename:

Loading…
Cancel
Save