[Nym3-commit] r279 - trunk/nym3/Client

jr at conuropsis.org jr at conuropsis.org
Wed Jun 1 13:08:54 CEST 2005


Author: jr
Date: 2005-06-01 13:08:53 +0200 (Wed, 01 Jun 2005)
New Revision: 279

Modified:
   trunk/nym3/Client/Main.py
Log:
correct a bug and change a reference to a constant


Modified: trunk/nym3/Client/Main.py
===================================================================
--- trunk/nym3/Client/Main.py	2005-06-01 10:59:35 UTC (rev 278)
+++ trunk/nym3/Client/Main.py	2005-06-01 11:08:53 UTC (rev 279)
@@ -165,7 +165,7 @@
 	ds = binascii.unhexlify(s)
     except TypeError:
 	return False
-    return len(ds) <= Mail.midLen
+    return len(ds) <= Common.midLength
 
 def decode_message_references(ui, refs, keys, h):
     """Generate a list of mids from a list of message references, refs,
@@ -178,7 +178,7 @@
     for e in refs:
 	if ':' not in e:
 	    if is_hex_mid(e):
-		l.append(e)
+		l.append(binascii.unhexlify(e))
 	    else:
 		ui.display("%s: not a valid mid" % e)
 	else:



More information about the Nym3-commit mailing list