diff options
author | Joel Rivera <rivera@joel.mx> | 2016-03-10 00:32:25 -0600 |
---|---|---|
committer | Joel Rivera <rivera@joel.mx> | 2016-03-10 00:32:25 -0600 |
commit | be7807d9229edaedde0eae18707694dcecf9965b (patch) | |
tree | 622bbf6e843be82b7225ab4faacea821ec9c1584 | |
parent | 12bdd60a936815333c32bc19f9c40930de1ea14f (diff) | |
download | cherrypy-be7807d9229edaedde0eae18707694dcecf9965b.tar.gz |
Substitute the `issubclass` function to `isinstance` to avoid the use of magical properties
-rw-r--r-- | cherrypy/test/webtest.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cherrypy/test/webtest.py b/cherrypy/test/webtest.py index c9aeb71d..959063f5 100644 --- a/cherrypy/test/webtest.py +++ b/cherrypy/test/webtest.py @@ -545,8 +545,7 @@ def openURL(url, headers=None, method="GET", body=None, return s, h, b except socket.error as e: - if (raise_subcls is not None and - issubclass(e.__class__, raise_subcls)): + if raise_subcls is not None and isinstance(e, raise_subcls): raise else: time.sleep(0.5) |