diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2010-03-23 13:20:39 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2010-03-23 13:20:39 (GMT) |
commit | c0fd6ffd4f66d97faa23e4f0d0e659a3e5833a46 (patch) | |
tree | ea8fecbc7985fbd2df85552fc1e8900ee8fc89fc /Modules | |
parent | e67bbfb6efb3e3626e57d74368786260059460b7 (diff) | |
download | cpython-c0fd6ffd4f66d97faa23e4f0d0e659a3e5833a46.zip cpython-c0fd6ffd4f66d97faa23e4f0d0e659a3e5833a46.tar.gz cpython-c0fd6ffd4f66d97faa23e4f0d0e659a3e5833a46.tar.bz2 |
Merged revisions 73824,78887,78895,78900,79024 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r73824 | ezio.melotti | 2009-07-04 04:18:08 +0300 (Sat, 04 Jul 2009) | 1 line
#6398 typo: versio. -> version.
........
r78887 | ezio.melotti | 2010-03-13 02:15:36 +0200 (Sat, 13 Mar 2010) | 1 line
fix broken links
........
r78895 | ezio.melotti | 2010-03-13 03:21:34 +0200 (Sat, 13 Mar 2010) | 1 line
#8011: use exc.tb_lineno instead of traceback.tb_lineno() and pep8ify variable names.
........
r78900 | ezio.melotti | 2010-03-13 06:39:51 +0200 (Sat, 13 Mar 2010) | 1 line
Silence compiler warnings.
........
r79024 | ezio.melotti | 2010-03-17 16:22:34 +0200 (Wed, 17 Mar 2010) | 1 line
Use "x in y" instead of y.find(x) != -1.
........
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_cursesmodule.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c index e2c17e1..2ea1488 100644 --- a/Modules/_cursesmodule.c +++ b/Modules/_cursesmodule.c @@ -450,14 +450,14 @@ PyCursesWindow_AddStr(PyCursesWindowObject *self, PyObject *args) if (use_attr == TRUE) { attr_old = getattrs(self->win); - wattrset(self->win,attr); + (void)wattrset(self->win,attr); } if (use_xy == TRUE) rtn = mvwaddstr(self->win,y,x,str); else rtn = waddstr(self->win,str); if (use_attr == TRUE) - wattrset(self->win,attr_old); + (void)wattrset(self->win,attr_old); return PyCursesCheckERR(rtn, "addstr"); } @@ -499,14 +499,14 @@ PyCursesWindow_AddNStr(PyCursesWindowObject *self, PyObject *args) if (use_attr == TRUE) { attr_old = getattrs(self->win); - wattrset(self->win,attr); + (void)wattrset(self->win,attr); } if (use_xy == TRUE) rtn = mvwaddnstr(self->win,y,x,str,n); else rtn = waddnstr(self->win,str,n); if (use_attr == TRUE) - wattrset(self->win,attr_old); + (void)wattrset(self->win,attr_old); return PyCursesCheckERR(rtn, "addnstr"); } @@ -1140,14 +1140,14 @@ PyCursesWindow_InsStr(PyCursesWindowObject *self, PyObject *args) if (use_attr == TRUE) { attr_old = getattrs(self->win); - wattrset(self->win,attr); + (void)wattrset(self->win,attr); } if (use_xy == TRUE) rtn = mvwinsstr(self->win,y,x,str); else rtn = winsstr(self->win,str); if (use_attr == TRUE) - wattrset(self->win,attr_old); + (void)wattrset(self->win,attr_old); return PyCursesCheckERR(rtn, "insstr"); } @@ -1189,14 +1189,14 @@ PyCursesWindow_InsNStr(PyCursesWindowObject *self, PyObject *args) if (use_attr == TRUE) { attr_old = getattrs(self->win); - wattrset(self->win,attr); + (void)wattrset(self->win,attr); } if (use_xy == TRUE) rtn = mvwinsnstr(self->win,y,x,str,n); else rtn = winsnstr(self->win,str,n); if (use_attr == TRUE) - wattrset(self->win,attr_old); + (void)wattrset(self->win,attr_old); return PyCursesCheckERR(rtn, "insnstr"); } |