[pypy-commit] pypy superjumbo: removed extra code
nanjekye
pypy.commits at gmail.com
Sun Apr 2 05:03:42 EDT 2017
Author: Joannah Nanjekye <nanjekyejoannah at gmail.com>
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)
More information about the pypy-commit
mailing list