diff options
author | Dwayne Litzenberger <dlitz@dlitz.net> | 2013-07-14 12:10:04 -0700 |
---|---|---|
committer | Dwayne Litzenberger <dlitz@dlitz.net> | 2013-07-14 18:34:47 -0700 |
commit | 842b5151217b90cbf2440adf4d3d08d0a23d084c (patch) | |
tree | b4935ae541c4a3d7102d87b41c5dafe2d6a5144f | |
parent | 406158b882c5233575ae860aea662de148d2a8cc (diff) | |
download | pycrypto-842b5151217b90cbf2440adf4d3d08d0a23d084c.tar.gz |
Remove pointless 'error' attribute from stream ciphers
Many years ago, this was removed from block_template, but not from
stream_template.
-rw-r--r-- | src/stream_template.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/stream_template.c b/src/stream_template.c index 6384788..da7baa6 100644 --- a/src/stream_template.c +++ b/src/stream_template.c @@ -317,7 +317,7 @@ void #endif _MODULE_NAME (void) { - PyObject *m, *d, *x; + PyObject *m; #ifdef IS_PY3K /* PyType_Ready automatically fills in ob_type with &PyType_Type if it's not already set */ @@ -334,11 +334,6 @@ void m = Py_InitModule("Crypto.Cipher." _MODULE_STRING, modulemethods); #endif - /* Add some symbolic constants to the module */ - d = PyModule_GetDict(m); - x = PyUnicode_FromString(_MODULE_STRING ".error"); - PyDict_SetItemString(d, "error", x); - PyModule_AddIntConstant(m, "block_size", BLOCK_SIZE); PyModule_AddIntConstant(m, "key_size", KEY_SIZE); |