Commit 53a08bf1 authored by Stewart Martin-Haugh's avatar Stewart Martin-Haugh
Browse files

Use builtin string functions

parent 0f91e20c
......@@ -7,7 +7,7 @@
from __future__ import print_function
import os, sys, string
import os, sys
import re
import AthenaCommon.Utils.unixtools as unixtools
......@@ -59,7 +59,7 @@ class ShellEscapes:
# execute command, if any
if cmd is not None:
args = string.split( cmd )
args = cmd.split()
exe = args[0]
# special cases
......
......@@ -46,7 +46,7 @@ files will be returned."""
except KeyError:
p = os.defpath
return FindFile( filename, string.split( p, os.pathsep ), os.X_OK )
return FindFile( filename, p.split( os.pathsep ), os.X_OK )
### "which" for python files ----------------------------------------------------
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment