Skip to content

Commit

Permalink
Disable click 5's unicode warnings
Browse files Browse the repository at this point in the history
I'm using the unicode literals intentionally, so this is annoying.
  • Loading branch information
nvie committed Aug 28, 2015
1 parent e388a80 commit fa53567
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 8 deletions.
6 changes: 6 additions & 0 deletions piptools/click.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from __future__ import absolute_import

import click
click.disable_unicode_literals_warning = True

from click import * # noqa
2 changes: 1 addition & 1 deletion piptools/locations.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os
from shutil import rmtree

from click import secho
from .click import secho
from pip.utils.appdirs import user_cache_dir

# The user_cache_dir helper comes straight from pip itself
Expand Down
2 changes: 1 addition & 1 deletion piptools/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import sys

import click
from . import click


class LogContext(object):
Expand Down
2 changes: 1 addition & 1 deletion piptools/resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from functools import partial
from itertools import chain, count

import click
from . import click
from first import first
from pip.req import InstallRequirement

Expand Down
2 changes: 1 addition & 1 deletion piptools/scripts/compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
'perhaps run `pip install --upgrade pip`?'.format(pip.__version__))
sys.exit(4)

import click # noqa
from .. import click # noqa
from pip.req import parse_requirements # noqa

from ..exceptions import PipToolsError # noqa
Expand Down
2 changes: 1 addition & 1 deletion piptools/scripts/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
sys.exit(4)

import os # noqa
import click # noqa
from .. import click # noqa
from .. import sync # noqa
from ..exceptions import PipToolsError # noqa
from ..logging import log # noqa
Expand Down
2 changes: 1 addition & 1 deletion piptools/sync.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import collections

import click
from . import click
import pip

from .exceptions import IncompatibleRequirements
Expand Down
2 changes: 1 addition & 1 deletion piptools/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from itertools import groupby, chain

from click import style
from .click import style
from first import first


Expand Down
2 changes: 1 addition & 1 deletion piptools/writer.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os
from os.path import basename

from click import unstyle
from .click import unstyle

from ._compat import ExitStack
from .io import AtomicSaver
Expand Down

0 comments on commit fa53567

Please sign in to comment.