diff --git a/pipenv/cli.py b/pipenv/cli.py index c2bc7635..26b2e43a 100644 --- a/pipenv/cli.py +++ b/pipenv/cli.py @@ -209,7 +209,7 @@ def do_install_dependencies(dev=False, only=False, bare=False, requirements=Fals else: if not bare: click.echo(crayons.yellow('Installing dependencies from Pipfile.lock...')) - with open(project.lockfile_location, 'r') as f: + with open(project.lockfile_location) as f: lockfile = json.load(f) # Install default dependencies, always. @@ -224,7 +224,7 @@ def do_install_dependencies(dev=False, only=False, bare=False, requirements=Fals # --requirements was passed. if requirements: - with open(deps_path, 'r') as f: + with open(deps_path) as f: click.echo(f.read()) sys.exit(0) @@ -679,7 +679,7 @@ def format_pip_output(out, r=None): def easter_egg(package_name): if package_name in ['requests', 'maya', 'crayons', 'delegator.py' 'records', 'tablib']: - click.echo('P.S. You have excellent taste! ✨ 🍰 ✨') + click.echo(u'P.S. You have excellent taste! ✨ 🍰 ✨') @click.group(invoke_without_command=True) diff --git a/pipenv/pep508checker.py b/pipenv/pep508checker.py index c88ea2ce..5a0cdc0c 100644 --- a/pipenv/pep508checker.py +++ b/pipenv/pep508checker.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- import sys import os import platform @@ -16,7 +17,7 @@ def format_full_version(info): if hasattr(sys, 'implementation'): implementation_version = format_full_version(sys.implementation.version) else: - implementation_version = "0" + implementation_version = '0' # Default to cpython for 2.7. if hasattr(sys, 'implementation'): diff --git a/pipenv/project.py b/pipenv/project.py index 5f84b788..40cf7de0 100644 --- a/pipenv/project.py +++ b/pipenv/project.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- import json import os @@ -68,7 +69,7 @@ class Project(object): @property def proper_names(self): - with open(self.proper_names_location, 'r') as f: + with open(self.proper_names_location) as f: return f.read().splitlines() def register_proper_name(self, name): @@ -85,7 +86,7 @@ class Project(object): @property def parsed_pipfile(self): - with open(self.pipfile_location, 'r') as f: + with open(self.pipfile_location) as f: # return toml.load(f) return toml.load(f, _dict=OrderedDict) @@ -99,7 +100,7 @@ class Project(object): @property def lockfile_content(self): - with open(self.lockfile_location, 'r') as lock: + with open(self.lockfile_location) as lock: return json.load(lock) def create_pipfile(self): diff --git a/pipenv/utils.py b/pipenv/utils.py index 08fc7c1b..8c50a107 100644 --- a/pipenv/utils.py +++ b/pipenv/utils.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- import os import tempfile