[pypy-commit] pypy win32-cleanup2: revert nt specific test
mattip
noreply at buildbot.pypy.org
Tue Apr 24 22:41:04 CEST 2012
Author: Matti Picus <matti.picus at 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))
More information about the pypy-commit
mailing list