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

bcftbx: fix escaping special characters in Python source code #146

Merged
merged 2 commits into from Sep 16, 2019
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
2 changes: 1 addition & 1 deletion bcftbx/JobRunner.py
Expand Up @@ -1064,7 +1064,7 @@ def __ge_name(self,name):
"""Internal: sanitize a name for use with GE
"""
ge_name = str(name)
for c in ":*@\?":
for c in ":*@\\?":
ge_name = ge_name.replace(c,'_')
if ge_name[0].isdigit():
# Name cannot start with a digit so
Expand Down
2 changes: 1 addition & 1 deletion bcftbx/mockGE.py
Expand Up @@ -376,7 +376,7 @@ def _list_jobs(self,user,state=None):
SELECT id,name,user,state,qsub_time,start_time,queue FROM jobs WHERE state != 'c'
"""
args = []
if user != "\*" and user != "*":
if user != "\\*" and user != "*":
sql += "AND user == ?"
args.append(user)
cu = self._cx.cursor()
Expand Down