Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[20.01] Fix string module use #9327

Merged
merged 4 commits into from
Feb 6, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 1 addition & 2 deletions lib/galaxy/visualization/plugins/interactive_environments.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import re
import shlex
import stat
import string
import tempfile
import uuid
from itertools import product
Expand Down Expand Up @@ -357,7 +356,7 @@ def _get_command_inject_env(self):
envsets.append(item[2:])
elif item.startswith('--env'):
envsets.append(item[5:])
return dict(map(lambda s: string.split(s, '=', 1), envsets))
return dict(_.split('=', 1) for _ in envsets)

def container_run_args(self, image, env_override=None, volumes=None):
if volumes is None:
Expand Down
3 changes: 1 addition & 2 deletions tools/plotting/bar_chart.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
anton nekrutenko | anton@bx.psu.edu
"""

import string
import sys
import tempfile

Expand All @@ -43,7 +42,7 @@ def main(tmpFileName):
try:
in_file = open(sys.argv[1], 'r')
xtic = int(sys.argv[2])
col_list = string.split(sys.argv[3], ",")
col_list = sys.argv[3].split(',')
title = 'set title "' + sys.argv[4] + '"'
ylabel = 'set ylabel "' + sys.argv[5] + '"'
ymin = sys.argv[6]
Expand Down