remove deprecated koji_cli.lib_unique_path
Fixes: https://pagure.io/koji/issue/1459
This commit is contained in:
parent
d85be645be
commit
9491c078bb
2 changed files with 1 additions and 7 deletions
|
|
@ -37,7 +37,7 @@ except ImportError: # pragma: no cover
|
||||||
import koji
|
import koji
|
||||||
from koji.util import to_list, base64encode
|
from koji.util import to_list, base64encode
|
||||||
from koji_cli.lib import _, activate_session, parse_arches, \
|
from koji_cli.lib import _, activate_session, parse_arches, \
|
||||||
_unique_path, _running_in_bg, _progress_callback, watch_tasks, \
|
_running_in_bg, _progress_callback, watch_tasks, \
|
||||||
arg_filter, linked_upload, list_task_output_all_volumes, \
|
arg_filter, linked_upload, list_task_output_all_volumes, \
|
||||||
print_task_headers, print_task_recurse, download_file, watch_logs, \
|
print_task_headers, print_task_recurse, download_file, watch_logs, \
|
||||||
error, warn, greetings, _list_tasks, unique_path
|
error, warn, greetings, _list_tasks, unique_path
|
||||||
|
|
|
||||||
|
|
@ -412,12 +412,6 @@ def unique_path(prefix):
|
||||||
''.join([random.choice(string.ascii_letters) for i in range(8)]))
|
''.join([random.choice(string.ascii_letters) for i in range(8)]))
|
||||||
|
|
||||||
|
|
||||||
def _unique_path(prefix):
|
|
||||||
koji.util.deprecated('_unique_path is deprecated, use unique_path instead.'
|
|
||||||
' See: https://pagure.io/koji/issue/975')
|
|
||||||
return unique_path(prefix)
|
|
||||||
|
|
||||||
|
|
||||||
def _format_size(size):
|
def _format_size(size):
|
||||||
if (size / 1073741824 >= 1):
|
if (size / 1073741824 >= 1):
|
||||||
return "%0.2f GiB" % (size / 1073741824.0)
|
return "%0.2f GiB" % (size / 1073741824.0)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue