The set_time_override function in timeutils was written as a
helper function to mock utcnow for unittests before 'mock' was
generally used. Now that we have mock and fixture, we no longer
need to use it.
Change-Id: I9a0727edab12ccd5f1e4eb4f5f62d588f5a0faee
Partial-Bug: #1266962
* Get the current line at runtime, don't hardcode the line number
* Only strip last character of the filename if it ends with ".pyc"
or ".pyo". On Python 3, import automatically replaces .pyc and
.pyo with .py.
* Use threading.current_thread().ident to get the identifier of the
current thread. The get_ident() function is available in thread
module in Python 2, but in threading module in Python 3. And on
Python 3, logging.thread symbol does not exist anymore.
Change-Id: I3f248bb860caafaf38eefcf440d36b9bebc8f05e