Commit 5fbec349 authored by Rafael Oliveira's avatar Rafael Oliveira

PEP8

parent 2517f01c
......@@ -19,7 +19,7 @@ import os
import re
import sys
import zc.buildout.easy_install
import zipfile
class Eggs(object):
......@@ -43,7 +43,7 @@ class Eggs(object):
allow_hosts = b_options['allow-hosts']
allow_hosts = tuple([host.strip() for host in allow_hosts.split('\n')
if host.strip()!=''])
if host.strip() != ''])
self.allow_hosts = allow_hosts
options['eggs-directory'] = b_options['eggs-directory']
......@@ -57,7 +57,6 @@ class Eggs(object):
This is intended for reuse by similar recipes.
"""
options = self.options
b_options = self.buildout['buildout']
# Backward compat. :(
options['executable'] = sys.executable
......@@ -91,6 +90,7 @@ class Eggs(object):
update = install
class Scripts(Eggs):
def __init__(self, buildout, name, options):
......@@ -107,7 +107,6 @@ class Scripts(Eggs):
if self.extra_paths:
options['extra-paths'] = '\n'.join(self.extra_paths)
relative_paths = options.get(
'relative-paths',
buildout['buildout'].get('relative-paths', 'false')
......@@ -122,6 +121,7 @@ class Scripts(Eggs):
parse_entry_point = re.compile(
'([^=]+)=(\w+(?:[.]\w+)*):(\w+(?:[.]\w+)*)$'
).match
def install(self):
reqs, ws = self.working_set()
options = self.options
......@@ -166,6 +166,7 @@ class Scripts(Eggs):
update = install
def get_bool(options, name, default=False):
value = options.get(name)
if not value:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment