summaryrefslogtreecommitdiffstats
path: root/Lib/curses
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/curses')
-rw-r--r--Lib/curses/wrapper.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/curses/wrapper.py b/Lib/curses/wrapper.py
index e725c5a..b8905fb 100644
--- a/Lib/curses/wrapper.py
+++ b/Lib/curses/wrapper.py
@@ -41,7 +41,7 @@ def wrapper(func, *rest):
except:
pass
- res = apply(func, (stdscr,) + rest)
+ res = func(stdscr, *rest)
except:
# In the event of an error, restore the terminal
# to a sane state.