Do not import memoize, humanize_bytes and urllib_* in powerline.lib

This commit is contained in:
ZyX 2013-03-17 20:51:28 +04:00
parent 29eccf409b
commit a4adc92215
4 changed files with 8 additions and 7 deletions

View File

@ -2,10 +2,6 @@
from functools import wraps
import json
from powerline.lib.memoize import memoize # NOQA
from powerline.lib.humanize_bytes import humanize_bytes # NOQA
from powerline.lib.url import urllib_read, urllib_urlencode # NOQA
def mergedicts(d1, d2):
'''Recursively merge two dictionaries. First dictionary is modified in-place.

View File

@ -7,7 +7,9 @@ from datetime import datetime
import socket
from multiprocessing import cpu_count
from powerline.lib import memoize, urllib_read, urllib_urlencode, add_divider_highlight_group
from powerline.lib import add_divider_highlight_group
from powerline.lib.memoize import memoize
from powerline.lib.url import urllib_read, urllib_urlencode
from powerline.lib.vcs import guess

View File

@ -10,8 +10,10 @@ except ImportError:
from powerline.bindings.vim import vim_get_func, getbufvar
from powerline.theme import requires_segment_info
from powerline.lib import memoize, humanize_bytes, add_divider_highlight_group
from powerline.lib import add_divider_highlight_group
from powerline.lib.memoize import memoize
from powerline.lib.vcs import guess
from powerline.lib.humanize_bytes import humanize_bytes
from functools import wraps
from collections import defaultdict

View File

@ -1,5 +1,6 @@
# vim:fileencoding=utf-8:noet
from powerline.lib import mergedicts, add_divider_highlight_group, humanize_bytes
from powerline.lib import mergedicts, add_divider_highlight_group
from powerline.lib.humanize_bytes import humanize_bytes
from powerline.lib.vcs import guess
from subprocess import call, PIPE
import os