summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-04-22 02:21:36 +0200
committerVictor Stinner <victor.stinner@gmail.com>2015-04-22 02:21:36 +0200
commitcfe5b2cb3b1d5c38221e9570e96cc393babda1ff (patch)
treebdccb994ff08a9c0cb7d782c7bad266ac352e690
parent11db5b1f795bb44d15f3621971d0cff3fca4d32c (diff)
downloadpaste-git-cfe5b2cb3b1d5c38221e9570e96cc393babda1ff.tar.gz
Fix paste.util.threadedprint.uninstall()
Rename duplicated uninstall() function to uninstall_stdin() and fix typo in variable name (_oldstin => _oldstdin).
-rw-r--r--paste/util/threadedprint.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/paste/util/threadedprint.py b/paste/util/threadedprint.py
index e69993e..820311e 100644
--- a/paste/util/threadedprint.py
+++ b/paste/util/threadedprint.py
@@ -237,8 +237,8 @@ def install_stdin(**kw):
register_stdin = _stdincatcher.register
deregister_stdin = _stdincatcher.deregister
-def uninstall():
- global _stdincatcher, _oldstin, register_stdin, deregister_stdin
+def uninstall_stdin():
+ global _stdincatcher, _oldstdin, register_stdin, deregister_stdin
if _stdincatcher:
sys.stdin = _oldstdin
_stdincatcher = _oldstdin = None