Author: Matti Picus <matti.pi...@gmail.com> Branch: win32-cleanup2 Changeset: r54735:2c48d071ff78 Date: 2012-04-24 23:40 +0300 http://bitbucket.org/pypy/pypy/changeset/2c48d071ff78/
Log: revert nt specific test diff --git a/pypy/module/pyexpat/interp_pyexpat.py b/pypy/module/pyexpat/interp_pyexpat.py --- a/pypy/module/pyexpat/interp_pyexpat.py +++ b/pypy/module/pyexpat/interp_pyexpat.py @@ -678,12 +678,8 @@ def set_error(self, space, code): err = rffi.charp2strn(XML_ErrorString(code), 200) - if os.name == 'nt': - lineno = -1 - colno = -1 - else: - lineno = XML_GetCurrentLineNumber(self.itself) - colno = XML_GetCurrentColumnNumber(self.itself) + lineno = XML_GetCurrentLineNumber(self.itself) + colno = XML_GetCurrentColumnNumber(self.itself) msg = "%s: line %d, column %d" % (err, lineno, colno) w_errorcls = space.fromcache(Cache).w_error w_error = space.call_function(w_errorcls, space.wrap(msg)) _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit