From: Finn B. <bc...@us...> - 2001-03-13 20:24:29
|
Update of /cvsroot/jython/jython/org/python/modules In directory usw-pr-cvs1:/tmp/cvs-serv28590 Modified Files: MD5Module.java Log Message: Added docstring. Index: MD5Module.java =================================================================== RCS file: /cvsroot/jython/jython/org/python/modules/MD5Module.java,v retrieving revision 2.7 retrieving revision 2.8 diff -C2 -r2.7 -r2.8 *** MD5Module.java 2001/02/02 11:29:41 2.7 --- MD5Module.java 2001/03/13 20:26:28 2.8 *************** *** 41,44 **** --- 41,63 ---- public class MD5Module implements ClassDictInit { + public static PyString __doc__ = new PyString( + "This module implements the interface to RSA's MD5 message digest\n"+ + "algorithm (see also Internet RFC 1321). Its use is quite\n"+ + "straightforward: use the new() to create an md5 object. You can now\n"+ + "feed this object with arbitrary strings using the update() method, and\n"+ + "at any point you can ask it for the digest (a strong kind of 128-bit\n"+ + "checksum, a.k.a. ``fingerprint'') of the concatenation of the strings\n"+ + "fed to it so far using the digest() method.\n"+ + "\n"+ + "Functions:\n"+ + "\n"+ + "new([arg]) -- return a new md5 object, initialized with arg if provided\n"+ + "md5([arg]) -- DEPRECATED, same as new, but for compatibility\n"+ + "\n"+ + "Special Objects:\n"+ + "\n"+ + "MD5Type -- type object for md5 objects\n" + ); + public static void classDictInit(PyObject dict) { dict.__setitem__("new", new MD5Functions("new", 0, 0, 1)); |