[prev in list] [next in list] [prev in thread] [next in thread] 

List:       tmda-cvs
Subject:    CVS: tmda/bin ChangeLog,1.75,1.76 tmda-filter,1.60,1.61
From:       "Jason R. Mastaler" <jasonrm () users ! sourceforge ! net>
Date:       2001-09-24 16:19:37
[Download RAW message or body]

Update of /cvsroot/tmda/tmda/bin
In directory usw-pr-cvs1:/tmp/cvs-serv29128/bin

Modified Files:
	ChangeLog tmda-filter 
Log Message:
Compactify string.split code.

Index: ChangeLog
===================================================================
RCS file: /cvsroot/tmda/tmda/bin/ChangeLog,v
retrieving revision 1.75
retrieving revision 1.76
diff -u -r1.75 -r1.76
--- ChangeLog	2001/09/17 23:52:22	1.75
+++ ChangeLog	2001/09/24 16:19:35	1.76
@@ -1,3 +1,8 @@
+2001-09-24  Jason R. Mastaler  <jasonrm@nightshade.la.mastaler.com>
+
+	* tmda-filter (verify_confirm_cookie): Compactify string.split
+	code.
+	
 2001-09-17  Jason R. Mastaler  <jasonrm@nightshade.la.mastaler.com>
 
 	* tmda-keygen (keygen): When /dev/urandom is not available, warn

Index: tmda-filter
===================================================================
RCS file: /cvsroot/tmda/tmda/bin/tmda-filter,v
retrieving revision 1.60
retrieving revision 1.61
diff -u -r1.60 -r1.61
--- tmda-filter	2001/09/13 22:46:13	1.60
+++ tmda-filter	2001/09/24 16:19:35	1.61
@@ -274,11 +274,8 @@
 
 def verify_confirm_cookie(confirm_cookie):
     """Verify a confirmation cookie."""
-    confirm_cookie_split = string.split(confirm_cookie,'.')
-    confirm_action = confirm_cookie_split[0]
-    confirm_timestamp = confirm_cookie_split[1]
-    confirm_pid = confirm_cookie_split[2]
-    confirm_hmac = confirm_cookie_split[3]
+    (confirm_action, confirm_timestamp,
+     confirm_pid, confirm_hmac) = string.split(confirm_cookie,'.')
     # pre-confirmation
     if confirm_action == 'accept':
         new_confirm_hmac = Cookie.confirmationmac(confirm_timestamp,


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic