]> git.decadent.org.uk Git - dak.git/blobdiff - daklib/utils.py
Drop utils.str_isnum() and use string's .isdigit() method instead.
[dak.git] / daklib / utils.py
index 1e182958e3f7a06ae161f3a1f1abc710cd9820c8..83b507a89062504b43840c51d257ea908757d82a 100644 (file)
@@ -22,7 +22,7 @@
 ################################################################################
 
 import codecs, commands, email.Header, os, pwd, re, select, socket, shutil, \
-       string, sys, tempfile, traceback
+       sys, tempfile, traceback
 import apt_pkg
 import database
 
@@ -97,14 +97,6 @@ def our_raw_input(prompt=""):
 
 ################################################################################
 
-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 = ""