Author: neal.norwitz
Date: Sun Aug 26 07:32:41 2007
New Revision: 57501
Modified:
python/branches/py3k/Modules/cjkcodecs/cjkcodecs.h
python/branches/py3k/Python/import.c
Log:
Fix a couple of warnings
Modified: python/branches/py3k/Modules/cjkcodecs/cjkcodecs.h
==============================================================================
--- python/branches/py3k/Modules/cjkcodecs/cjkcodecs.h (original)
+++ python/branches/py3k/Modules/cjkcodecs/cjkcodecs.h Sun Aug 26 07:32:41 2007
@@ -266,7 +266,7 @@
"encoding name must be a string.");
return NULL;
}
- enc = PyUnicode_AsString(encoding, NULL);
+ enc = PyUnicode_AsString(encoding);
if (enc == NULL)
return NULL;
Modified: python/branches/py3k/Python/import.c
==============================================================================
--- python/branches/py3k/Python/import.c (original)
+++ python/branches/py3k/Python/import.c Sun Aug 26 07:32:41 2007
@@ -2366,7 +2366,7 @@
"reload() argument must be module");
return NULL;
}
- name = PyModule_GetName(m);
+ name = (char*)PyModule_GetName(m);
if (name == NULL)
return NULL;
if (m != PyDict_GetItemString(modules, name)) {
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins