Author: Brian Kearns <[email protected]>
Branch:
Changeset: r70872:8382ba2271f5
Date: 2014-04-22 13:36 -0700
http://bitbucket.org/pypy/pypy/changeset/8382ba2271f5/
Log: simplify
diff --git a/rpython/rlib/rsocket.py b/rpython/rlib/rsocket.py
--- a/rpython/rlib/rsocket.py
+++ b/rpython/rlib/rsocket.py
@@ -997,12 +997,8 @@
def get_msg(self):
return _c.socket_strerror_str(self.errno)
-if _c.WIN32:
- def last_error():
- return CSocketError(rwin32.GetLastError())
-else:
- def last_error():
- return CSocketError(_c.geterrno())
+def last_error():
+ return CSocketError(_c.geterrno())
class GAIError(SocketErrorWithErrno):
applevelerrcls = 'gaierror'
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit