PEP8 cleanup: fix spaces around keyword parameters

Reviewed-by: James Cameron <quozl@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
CC: Aleksey Lim <alsroot@member.fsf.org>
This commit is contained in:
Sascha Silbe 2010-10-15 18:36:38 +00:00
parent 72ed58cbca
commit 73de340d27
5 changed files with 7 additions and 7 deletions

View File

@ -69,7 +69,7 @@ class ActivityHandle(object):
def create_from_dict(handle_dict): def create_from_dict(handle_dict):
"""Create a handle from a dictionary of parameters""" """Create a handle from a dictionary of parameters"""
result = ActivityHandle(handle_dict['activity_id'], result = ActivityHandle(handle_dict['activity_id'],
object_id = handle_dict.get('object_id'), object_id=handle_dict.get('object_id'),
uri = handle_dict.get('uri'), uri=handle_dict.get('uri'),
invited = handle_dict.get('invited')) invited=handle_dict.get('invited'))
return result return result

View File

@ -64,7 +64,7 @@ def list_files(base_dir, ignore_dirs=None, ignore_files=None):
class Config(object): class Config(object):
def __init__(self, source_dir=None, dist_dir = None, dist_name = None): def __init__(self, source_dir=None, dist_dir=None, dist_name=None):
self.source_dir = source_dir or os.getcwd() self.source_dir = source_dir or os.getcwd()
self.dist_dir = dist_dir or os.path.join(self.source_dir, 'dist') self.dist_dir = dist_dir or os.path.join(self.source_dir, 'dist')
self.dist_name = dist_name self.dist_name = dist_name

View File

@ -136,7 +136,7 @@ class ActivityBundle(Bundle):
return lines return lines
def get_files(self, manifest = None): def get_files(self, manifest=None):
files = [line for line in (manifest or self.manifest) if line] files = [line for line in (manifest or self.manifest) if line]
if self.is_file('MANIFEST'): if self.is_file('MANIFEST'):

View File

@ -170,7 +170,7 @@ class _TrayScrollButton(ToolButton):
self.set_size_request(style.GRID_CELL_SIZE, style.GRID_CELL_SIZE) self.set_size_request(style.GRID_CELL_SIZE, style.GRID_CELL_SIZE)
self.icon = Icon(icon_name = icon_name, self.icon = Icon(icon_name=icon_name,
icon_size=gtk.ICON_SIZE_SMALL_TOOLBAR) icon_size=gtk.ICON_SIZE_SMALL_TOOLBAR)
# The alignment is a hack to work around gtk.ToolButton code # The alignment is a hack to work around gtk.ToolButton code
# that sets the icon_size when the icon_widget is a gtk.Image # that sets the icon_size when the icon_widget is a gtk.Image

View File

@ -50,7 +50,7 @@ def sha_data(data):
return sha_hash.digest() return sha_hash.digest()
def unique_id(data = ''): def unique_id(data=''):
"""Generate a likely-unique ID for whatever purpose """Generate a likely-unique ID for whatever purpose
data -- suffix appended to working data before hashing data -- suffix appended to working data before hashing