The timestamp() method for datetime.datetime instances was only added in Python 3. It does not exist in Python 2. So we can't safely use it here.
timestamp()
datetime.datetime
I believe this should do the right thing, taking advantage of a couple of existing utility functions in koji.util.
Signed-off-by: Adam Williamson awilliam@redhat.com
@kevin monkeypatched the Fedora instance with this patch and it seems to be working, I'm seeing apparently-sane 'Total time' and 'Task time' values for running tasks and a distinct lack of tracebacks :)
Metadata Update from @tkopecek: - Pull-request tagged with: testing-ready
Commit d7fc15bc fixes this pull-request
Pull-Request has been merged by tkopecek
Metadata Update from @jcupova: - Pull-request tagged with: testing-done
The
timestamp()method fordatetime.datetimeinstances wasonly added in Python 3. It does not exist in Python 2. So we
can't safely use it here.
I believe this should do the right thing, taking advantage of a
couple of existing utility functions in koji.util.
Signed-off-by: Adam Williamson awilliam@redhat.com