Rename time.py to monotonic.py
This makes it possible to run modules in the lib/ directory standalone.
This commit is contained in:
parent
80be4071c9
commit
f1286a7bc1
|
@ -7,10 +7,10 @@ __docformat__ = 'restructuredtext en'
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import errno
|
import errno
|
||||||
from powerline.lib.time import monotonic
|
|
||||||
from time import sleep
|
from time import sleep
|
||||||
from threading import RLock
|
from threading import RLock
|
||||||
|
|
||||||
|
from powerline.lib.monotonic import monotonic
|
||||||
|
|
||||||
class INotifyError(Exception):
|
class INotifyError(Exception):
|
||||||
pass
|
pass
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# vim:fileencoding=utf-8:noet
|
# vim:fileencoding=utf-8:noet
|
||||||
|
|
||||||
from functools import wraps
|
from functools import wraps
|
||||||
from powerline.lib.time import monotonic
|
from powerline.lib.monotonic import monotonic
|
||||||
|
|
||||||
|
|
||||||
def default_cache_key(**kwargs):
|
def default_cache_key(**kwargs):
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
|
|
||||||
from powerline.lib.time import monotonic
|
from powerline.lib.monotonic import monotonic
|
||||||
|
|
||||||
from threading import Thread, Lock, Event
|
from threading import Thread, Lock, Event
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ from powerline.lib import add_divider_highlight_group
|
||||||
from powerline.lib.url import urllib_read, urllib_urlencode
|
from powerline.lib.url import urllib_read, urllib_urlencode
|
||||||
from powerline.lib.vcs import guess
|
from powerline.lib.vcs import guess
|
||||||
from powerline.lib.threaded import ThreadedSegment, KwThreadedSegment, with_docstring
|
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.lib.humanize_bytes import humanize_bytes
|
||||||
from powerline.theme import requires_segment_info
|
from powerline.theme import requires_segment_info
|
||||||
from collections import namedtuple
|
from collections import namedtuple
|
||||||
|
|
Loading…
Reference in New Issue