Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewilyas committed Aug 21, 2019
1 parent 57f872a commit 18bec4f
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions robustness/tools/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,12 +204,3 @@ def restricted_label_mapping(classes, class_to_idx, ranges):
# assert class_name in mapping
filtered_classes = list(mapping.keys()).sort()
return filtered_classes, mapping

def get_pip_version():
cmd = "pip show robustness 2> /dev/null | cat | head -n 2 "
cmd += "| tail -n 1 | sed 's/Version: //'"
process = Popen(cmd, stdout=PIPE, shell=True)
(output, err) = process.communicate()
exit_code = process.wait()
pip_version = output.strip().decode('UTF-8')
return pip_version

0 comments on commit 18bec4f

Please sign in to comment.