+2006-05-21 James Troup <james@nocrew.org>
+
+ * dak/rm.py (main): use string .isdigit() rather than
+ utils.str_isnum().
+ * dak/process_new.py (edit_overrides): likewise.
+
+ * daklib/utils.py (str_isnum): removed accordingly. Also drop
+ string import.
+
2006-05-21 James Troup <james@nocrew.org>
* dak/check_archive.py (check_indices_files_exist): use list
got_answer = 0
while not got_answer:
answer = daklib.utils.our_raw_input(prompt)
- if not daklib.utils.str_isnum(answer):
+ if not answer.isdigit():
answer = answer[:1].upper()
if answer == "E" or answer == "D":
got_answer = 1
#
carbon_copy = []
for copy_to in daklib.utils.split_args(Options.get("Carbon-Copy")):
- if daklib.utils.str_isnum(copy_to):
+ if copy_to.isdigit():
carbon_copy.append(copy_to + "@" + Cnf["Dinstall::BugServer"])
elif copy_to == 'package':
for package in arguments:
################################################################################
import codecs, commands, email.Header, os, pwd, re, select, socket, shutil, \
- string, sys, tempfile, traceback
+ sys, tempfile, traceback
import apt_pkg
import database
################################################################################
-def str_isnum (s):
- for c in s:
- if c not in string.digits:
- return 0
- return 1
-
-################################################################################
-
def extract_component_from_section(section):
component = ""