summaryrefslogtreecommitdiffstats
path: root/Modules/_localemodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/_localemodule.c')
-rw-r--r--Modules/_localemodule.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/Modules/_localemodule.c b/Modules/_localemodule.c
index b448be1..6f063fb 100644
--- a/Modules/_localemodule.c
+++ b/Modules/_localemodule.c
@@ -96,21 +96,18 @@ copy_grouping(char* s)
static void
fixup_ulcase(void)
{
- PyObject *mods, *strop, *string, *ulo;
+ PyObject *mods, *string, *ulo;
unsigned char ul[256];
int n, c;
- /* find the string and strop modules */
+ /* find the string module */
mods = PyImport_GetModuleDict();
if (!mods)
return;
string = PyDict_GetItemString(mods, "string");
if (string)
string = PyModule_GetDict(string);
- strop=PyDict_GetItemString(mods, "strop");
- if (strop)
- strop = PyModule_GetDict(strop);
- if (!string && !strop)
+ if (!string)
return;
/* create uppercase map string */
@@ -124,8 +121,6 @@ fixup_ulcase(void)
return;
if (string)
PyDict_SetItemString(string, "uppercase", ulo);
- if (strop)
- PyDict_SetItemString(strop, "uppercase", ulo);
Py_DECREF(ulo);
/* create lowercase string */
@@ -139,8 +134,6 @@ fixup_ulcase(void)
return;
if (string)
PyDict_SetItemString(string, "lowercase", ulo);
- if (strop)
- PyDict_SetItemString(strop, "lowercase", ulo);
Py_DECREF(ulo);
/* create letters string */