CVS: tmda-cgi Session.py,1.30,1.31

Gre7g Luterman <[email protected]>
Newsgroups gmane.mail.spam.tmda.cvs
Message-ID <[email protected]>
Update of /cvsroot/tmda/tmda-cgi
In directory sc8-pr-cvs1:/tmp/cvs-serv5013

Modified Files:
	Session.py 
Log Message:
Removed some Python 2.2 specific code.


Index: Session.py
===================================================================
RCS file: /cvsroot/tmda/tmda-cgi/Session.py,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -r1.30 -r1.31
--- Session.py	7 May 2003 16:31:53 -0000	1.30
+++ Session.py	8 May 2003 00:17:43 -0000	1.31
@@ -28,7 +28,6 @@
 import pwd
 import random
 import re
-import string
 import sys
 import time
 from types import *
@@ -345,7 +344,8 @@
         pass
 
     # New session
-    SessionChars = string.ascii_letters + string.digits
+    SessionChars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" \
+      "0123456789"
     self.SID = ""
     for i in range(8):
       self.SID += SessionChars[self.Rands.randrange(len(SessionChars))]

_______________________________________
tmda-cvs mailing list
http://tmda.net/lists/listinfo/tmda-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.