Author: Armin Rigo <ar...@tunes.org> Branch: py3k Changeset: r87271:0c7e8fb3f755 Date: 2016-09-21 16:00 +0200 http://bitbucket.org/pypy/pypy/changeset/0c7e8fb3f755/
Log: Move the docstrings to the proper place diff --git a/pypy/module/posix/app_posix.py b/pypy/module/posix/app_posix.py --- a/pypy/module/posix/app_posix.py +++ b/pypy/module/posix/app_posix.py @@ -40,9 +40,6 @@ st_atime = structseqfield(11, "time of last access") st_mtime = structseqfield(12, "time of last modification") st_ctime = structseqfield(13, "time of last change") - st_atime_ns = structseqfield(14, "time of last access in nanoseconds") - st_mtime_ns = structseqfield(15, "time of last modification in nanoseconds") - st_ctime_ns = structseqfield(16, "time of last change in nanoseconds") if "st_blksize" in posix._statfields: st_blksize = structseqfield(20, "blocksize for filesystem I/O") @@ -66,14 +63,17 @@ @property def st_atime_ns(self): + "time of last access in nanoseconds" return int(self[7]) * 1000000000 + self.nsec_atime @property def st_mtime_ns(self): + "time of last modification in nanoseconds" return int(self[8]) * 1000000000 + self.nsec_mtime @property def st_ctime_ns(self): + "time of last change in nanoseconds" return int(self[9]) * 1000000000 + self.nsec_ctime _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit