Author: Joannah Nanjekye <[email protected]>
Branch: superjumbo
Changeset: r90915:1c4ccc021d87
Date: 2017-03-27 15:27 +0300
http://bitbucket.org/pypy/pypy/changeset/1c4ccc021d87/
Log: removed extra code
diff --git a/rpython/rlib/rposix.py b/rpython/rlib/rposix.py
--- a/rpython/rlib/rposix.py
+++ b/rpython/rlib/rposix.py
@@ -455,13 +455,7 @@
def close(fd):
validate_fd(fd)
handle_posix_error('close', c_close(fd))
-
-def write(fd, data):
- count = len(data)
- validate_fd(fd)
- with rffi.scoped_nonmovingbuffer(data) as buf:
- return handle_posix_error('write', c_write(fd, buf, count))
-
+
c_lseek = external('_lseeki64' if _WIN32 else 'lseek',
[rffi.INT, rffi.LONGLONG, rffi.INT], rffi.LONGLONG,
macro=_MACRO_ON_POSIX, save_err=rffi.RFFI_SAVE_ERRNO)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit