diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2007-08-31 04:32:55 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2007-08-31 04:32:55 (GMT) |
commit | 1fe5f388529dcdf674d53f7d67abc16c9c6ca5e5 (patch) | |
tree | b35d6a88c4ded09687f9916e4d4c0b03bafde580 /PC | |
parent | 538d17aa233e99a0652d0c6d482845e8e909b6e0 (diff) | |
download | cpython-1fe5f388529dcdf674d53f7d67abc16c9c6ca5e5.zip cpython-1fe5f388529dcdf674d53f7d67abc16c9c6ca5e5.tar.gz cpython-1fe5f388529dcdf674d53f7d67abc16c9c6ca5e5.tar.bz2 |
Remove checking redundantly for checks of PyInt and PyLong.
Diffstat (limited to 'PC')
-rw-r--r-- | PC/_winreg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/PC/_winreg.c b/PC/_winreg.c index 7386ea1..ddb6b2c 100644 --- a/PC/_winreg.c +++ b/PC/_winreg.c @@ -575,7 +575,7 @@ PyHKEY_AsHKEY(PyObject *ob, HKEY *pHANDLE, BOOL bNoneOK) PyHKEYObject *pH = (PyHKEYObject *)ob; *pHANDLE = pH->hkey; } - else if (PyInt_Check(ob) || PyLong_Check(ob)) { + else if (PyLong_Check(ob)) { /* We also support integers */ PyErr_Clear(); *pHANDLE = (HKEY)PyLong_AsVoidPtr(ob); |