Combine vim modelines and Python encoding declarations

Ref #314
This commit is contained in:
Kim Silkebækken 2013-03-11 10:40:09 +01:00
parent b31c987cc8
commit 111eaa27e8
43 changed files with 43 additions and 73 deletions

View File

@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-
# vim:fenc=utf-8:noet
# vim:fileencoding=utf-8:noet
import os
import sys

View File

@ -1,6 +1,5 @@
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
# vim:fenc=utf-8:noet
# vim:fileencoding=utf-8:noet
import argparse
import sys

View File

@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-
# vim:fenc=utf-8:noet
# vim:fileencoding=utf-8:noet
from __future__ import absolute_import
import json

View File

@ -1,4 +1,4 @@
# vim:fenc=utf-8:noet
# vim:fileencoding=utf-8:noet
from powerline.ipython import IpythonPowerline
from IPython.core.prompts import PromptManager

View File

@ -1,4 +1,4 @@
# vim:fenc=utf-8:noet
# vim:fileencoding=utf-8:noet
from powerline.ipython import IpythonPowerline
from IPython.Prompts import BasePrompt
from IPython.ipapi import get as get_ipython

View File

@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-
# vim:fenc=utf-8:noet
# vim:fileencoding=utf-8:noet
from libqtile import bar
from libqtile.widget import base

View File

@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-
# vim:fenc=utf-8:noet
# vim:fileencoding=utf-8:noet
try:
import vim

View File

@ -1,4 +1,4 @@
# vim:fenc=utf-8:noet
# vim:fileencoding=utf-8:noet
import zsh
from powerline.shell import ShellPowerline
from powerline.lib import parsedotval

View File

@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-
# vim:fenc=utf-8:noet
# vim:fileencoding=utf-8:noet
from copy import copy

View File

@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-
# vim:fenc=utf-8:noet
# vim:fileencoding=utf-8:noet
from powerline import Powerline
from powerline.lib import mergedicts

View File

@ -1,4 +1,4 @@
# vim:fenc=utf-8:noet
# vim:fileencoding=utf-8:noet
from functools import wraps
import json

View File

@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-
# vim:fenc=utf-8:noet
# vim:fileencoding=utf-8:noet
from math import log
unit_list = tuple(zip(['', 'k', 'M', 'G', 'T', 'P'], [0, 0, 1, 2, 2, 2]))

View File

@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-
# vim:fenc=utf-8:noet
# vim:fileencoding=utf-8:noet
from functools import wraps
import time

View File

@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-
# vim:fenc=utf-8:noet
# vim:fileencoding=utf-8:noet
def urllib_read(url):

View File

@ -1,4 +1,4 @@
# vim:fenc=utf-8:noet
# vim:fileencoding=utf-8:noet
from __future__ import absolute_import
import os
from powerline.lib.memoize import memoize

View File

@ -1,4 +1,4 @@
# vim:fenc=utf-8:noet
# vim:fileencoding=utf-8:noet
from __future__ import absolute_import, unicode_literals, division, print_function
import sys

View File

@ -1,4 +1,4 @@
# vim:fenc=utf-8:noet
# vim:fileencoding=utf-8:noet
try:
import pygit2 as git

View File

@ -1,4 +1,4 @@
# vim:fenc=utf-8:noet
# vim:fileencoding=utf-8:noet
from __future__ import absolute_import
from mercurial import hg, ui, match

View File

@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-
# vim:fenc=utf-8:noet
# vim:fileencoding=utf-8:noet
from __future__ import absolute_import
import sys

View File

@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-
# vim:fenc=utf-8:noet
# vim:fileencoding=utf-8:noet
from __future__ import absolute_import

View File

@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-
# vim:fenc=utf-8:noet
# vim:fileencoding=utf-8:noet
from powerline.theme import Theme

View File

@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-
# vim:fenc=utf-8:noet
# vim:fileencoding=utf-8:noet
from powerline.renderers.shell import ShellRenderer

View File

@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-
# vim:fenc=utf-8:noet
# vim:fileencoding=utf-8:noet
from powerline.renderers.shell import ShellRenderer

View File

@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-
# vim:fenc=utf-8:noet
# vim:fileencoding=utf-8:noet
from powerline.renderer import Renderer
from powerline.colorscheme import ATTR_BOLD, ATTR_ITALIC, ATTR_UNDERLINE

View File

@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-
# vim:fenc=utf-8:noet
# vim:fileencoding=utf-8:noet
from powerline.renderer import Renderer
from powerline.colorscheme import ATTR_BOLD, ATTR_ITALIC, ATTR_UNDERLINE

View File

@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-
# vim:fenc=utf-8:noet
# vim:fileencoding=utf-8:noet
from powerline.renderer import Renderer
from powerline.colorscheme import ATTR_BOLD, ATTR_ITALIC, ATTR_UNDERLINE

View File

@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-
# vim:fenc=utf-8:noet
# vim:fileencoding=utf-8:noet
from __future__ import absolute_import

View File

@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-
# vim:fenc=utf-8:noet
# vim:fileencoding=utf-8:noet
from powerline.renderers.shell import ShellRenderer

View File

@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-
# vim:fenc=utf-8:noet
# vim:fileencoding=utf-8:noet
from __future__ import absolute_import
import sys

View File

@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-
# vim:fenc=utf-8:noet
# vim:fileencoding=utf-8:noet
import os
import sys

View File

@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-
# vim:fenc=utf-8:noet
# vim:fileencoding=utf-8:noet
from powerline.theme import requires_segment_info

View File

@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-
# vim:fenc=utf-8:noet
# vim:fileencoding=utf-8:noet
from __future__ import absolute_import

View File

@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-
# vim:fenc=utf-8:noet
# vim:fileencoding=utf-8:noet
from powerline import Powerline
from powerline.lib import mergedicts, parsedotval

View File

@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-
# vim:fenc=utf-8:noet
# vim:fileencoding=utf-8:noet
from copy import copy

View File

@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-
# vim:fenc=utf-8:noet
# vim:fileencoding=utf-8:noet
from __future__ import absolute_import

View File

@ -1,6 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8:noet
# vim:fileencoding=utf-8:noet
import os
import sys

View File

@ -1,4 +1,4 @@
# vim:fenc=utf-8:noet
# vim:fileencoding=utf-8:noet
import sys
if sys.version_info < (2, 7):
from unittest2 import TestCase, main # NOQA

View File

@ -1,4 +1,4 @@
# vim:fenc=utf-8:noet
# vim:fileencoding=utf-8:noet
import imp
import sys
import os

View File

@ -1,4 +1,4 @@
# vim:fenc=utf-8:noet
# vim:fileencoding=utf-8:noet
from tests import vim

View File

@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-
# vim:fenc=utf-8:noet
# vim:fileencoding=utf-8:noet
'''Dynamic configuration files tests.'''

View File

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

View File

@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-
# vim:fenc=utf-8:noet
# vim:fileencoding=utf-8:noet
from powerline.segments import shell, common
import tests.vim as vim_module

View File

@ -1,4 +1,4 @@
# vim:fenc=utf-8:noet
# vim:fileencoding=utf-8:noet
_log = []
_g = {}
_window = 0