spacewalk/certs-tools/sslToolLib.py | 15 +--------------
1 file changed, 1 insertion(+), 14 deletions(-)
New commits:
commit ceb7628dd3a0e4f4eae5a8fe7626ecf841c517dc
Author: Michael Mraka <michael.mraka(a)redhat.com>
Date: Thu Jan 21 10:14:44 2010 +0100
since RHEL4 it's always python 2.3+
diff --git a/spacewalk/certs-tools/sslToolLib.py b/spacewalk/certs-tools/sslToolLib.py
index 845f593..fe2f657 100644
--- a/spacewalk/certs-tools/sslToolLib.py
+++ b/spacewalk/certs-tools/sslToolLib.py
@@ -208,15 +208,7 @@ class TempDir:
""" fetch the temporary directory path using the most
"correct"
mk*temp function for this python version
"""
-
- mktemp = None
- if hasattr(tempfile, 'mkdtemp'):
- # python 2.3+
- mktemp = tempfile.mkdtemp
- else:
- # pre-python 2.3
- mktemp = tempfile.mktemp
- return mktemp(suffix=suffix)
+ return tempfile.mkdtemp(suffix=suffix)
def getdir(self):
return self.path
commit 19e850d9c65f81c4bb282f622a3f832cbecc76ef
Author: Michael Mraka <michael.mraka(a)redhat.com>
Date: Thu Jan 21 10:10:17 2010 +0100
removed unused imports
diff --git a/spacewalk/certs-tools/sslToolLib.py b/spacewalk/certs-tools/sslToolLib.py
index bcc27a2..845f593 100644
--- a/spacewalk/certs-tools/sslToolLib.py
+++ b/spacewalk/certs-tools/sslToolLib.py
@@ -21,13 +21,8 @@
import os
import re
import sys
-import md5
-import time
-import types
import string
import shutil
-import popen2
-import select
import tempfile
from timeLib import DAY, now, secs2days, secs2years, secs2str, \
str2secs
Show replies by date