Rename time.py to monotonic.py

This makes it possible to run modules in the lib/ directory standalone.
This commit is contained in:
Kovid Goyal 2013-04-05 16:04:26 +02:00 committed by Kim Silkebækken
parent 80be4071c9
commit f1286a7bc1
5 changed files with 4 additions and 4 deletions

View File

@ -7,10 +7,10 @@ __docformat__ = 'restructuredtext en'
import os
import sys
import errno
from powerline.lib.time import monotonic
from time import sleep
from threading import RLock
from powerline.lib.monotonic import monotonic
class INotifyError(Exception):
pass

View File

@ -1,7 +1,7 @@
# vim:fileencoding=utf-8:noet
from functools import wraps
from powerline.lib.time import monotonic
from powerline.lib.monotonic import monotonic
def default_cache_key(**kwargs):

View File

@ -2,7 +2,7 @@
from __future__ import absolute_import
from powerline.lib.time import monotonic
from powerline.lib.monotonic import monotonic
from threading import Thread, Lock, Event

View File

@ -13,7 +13,7 @@ from powerline.lib import add_divider_highlight_group
from powerline.lib.url import urllib_read, urllib_urlencode
from powerline.lib.vcs import guess
from powerline.lib.threaded import ThreadedSegment, KwThreadedSegment, with_docstring
from powerline.lib.time import monotonic
from powerline.lib.monotonic import monotonic
from powerline.lib.humanize_bytes import humanize_bytes
from powerline.theme import requires_segment_info
from collections import namedtuple