issue #477: 2.4 stat() returned int timestamps not float.

issue510
David Wilson 6 years ago
parent 19eafc5755
commit a8716972fb

@ -827,8 +827,8 @@ class FileService(Service):
u'mode': st.st_mode,
u'owner': self._name_or_none(pwd.getpwuid, 0, 'pw_name'),
u'group': self._name_or_none(grp.getgrgid, 0, 'gr_name'),
u'mtime': st.st_mtime,
u'atime': st.st_atime,
u'mtime': float(st.st_mtime), # Python 2.4 uses int.
u'atime': float(st.st_atime), # Python 2.4 uses int.
}
def on_shutdown(self):

Loading…
Cancel
Save