summaryrefslogtreecommitdiffstats
path: root/Lib/plat-irix6
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2001-02-09 12:20:51 (GMT)
committerEric S. Raymond <esr@thyrsus.com>2001-02-09 12:20:51 (GMT)
commitb3acd3e4d338ef41d50b86e9230646c510bb5c6a (patch)
tree8b68e9d058cfd6d8eb218956cb194bbcb8beb523 /Lib/plat-irix6
parent7e642e82d3429d9b4f583ba0e81a27e5ea02d5ca (diff)
downloadcpython-b3acd3e4d338ef41d50b86e9230646c510bb5c6a.zip
cpython-b3acd3e4d338ef41d50b86e9230646c510bb5c6a.tar.gz
cpython-b3acd3e4d338ef41d50b86e9230646c510bb5c6a.tar.bz2
String method conversion.
Diffstat (limited to 'Lib/plat-irix6')
-rw-r--r--Lib/plat-irix6/cdplayer.py6
-rw-r--r--Lib/plat-irix6/flp.py9
2 files changed, 7 insertions, 8 deletions
diff --git a/Lib/plat-irix6/cdplayer.py b/Lib/plat-irix6/cdplayer.py
index 278da03..c665a07 100644
--- a/Lib/plat-irix6/cdplayer.py
+++ b/Lib/plat-irix6/cdplayer.py
@@ -25,8 +25,8 @@ class Cdplayer:
t = []
for i in range(2, len(tracklist), 4):
t.append((None, \
- (string.atoi(tracklist[i:i+2]), \
- string.atoi(tracklist[i+2:i+4]))))
+ (int(tracklist[i:i+2]), \
+ int(tracklist[i+2:i+4]))))
tracklist = t
self.track = [None] + [''] * len(tracklist)
self.id = 'd' + string.zfill(len(tracklist), 2)
@@ -59,7 +59,7 @@ class Cdplayer:
elif name == 'artist':
self.artist = value
elif name[:5] == 'track':
- trackno = string.atoi(name[6:])
+ trackno = int(name[6:])
self.track[trackno] = value
f.close()
diff --git a/Lib/plat-irix6/flp.py b/Lib/plat-irix6/flp.py
index 7d5814a..6530487 100644
--- a/Lib/plat-irix6/flp.py
+++ b/Lib/plat-irix6/flp.py
@@ -3,7 +3,6 @@
#
# Jack Jansen, December 1991
#
-import string
import os
import sys
import FL
@@ -248,7 +247,7 @@ def _parse_num(str):
return eval(str)
def _parse_numlist(str):
- slist = string.split(str)
+ slist = str.split()
nlist = []
for i in slist:
nlist.append(_parse_num(i))
@@ -277,9 +276,9 @@ def _parse_line(line):
return line
name, value = match.group(1, 2)
if name[0] == 'N':
- name = string.join(string.split(name),'')
- name = string.lower(name)
- name = string.capitalize(name)
+ name = ''.join(name.split())
+ name = name.lower()
+ name = name.capitalize()
try:
pf = _parse_func[name]
except KeyError: