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:
parent
72ed58cbca
commit
73de340d27
@ -69,7 +69,7 @@ class ActivityHandle(object):
|
||||
def create_from_dict(handle_dict):
|
||||
"""Create a handle from a dictionary of parameters"""
|
||||
result = ActivityHandle(handle_dict['activity_id'],
|
||||
object_id = handle_dict.get('object_id'),
|
||||
uri = handle_dict.get('uri'),
|
||||
invited = handle_dict.get('invited'))
|
||||
object_id=handle_dict.get('object_id'),
|
||||
uri=handle_dict.get('uri'),
|
||||
invited=handle_dict.get('invited'))
|
||||
return result
|
||||
|
@ -64,7 +64,7 @@ def list_files(base_dir, ignore_dirs=None, ignore_files=None):
|
||||
|
||||
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.dist_dir = dist_dir or os.path.join(self.source_dir, 'dist')
|
||||
self.dist_name = dist_name
|
||||
|
@ -136,7 +136,7 @@ class ActivityBundle(Bundle):
|
||||
|
||||
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]
|
||||
|
||||
if self.is_file('MANIFEST'):
|
||||
|
@ -170,7 +170,7 @@ class _TrayScrollButton(ToolButton):
|
||||
|
||||
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)
|
||||
# The alignment is a hack to work around gtk.ToolButton code
|
||||
# that sets the icon_size when the icon_widget is a gtk.Image
|
||||
|
@ -50,7 +50,7 @@ def sha_data(data):
|
||||
return sha_hash.digest()
|
||||
|
||||
|
||||
def unique_id(data = ''):
|
||||
def unique_id(data=''):
|
||||
"""Generate a likely-unique ID for whatever purpose
|
||||
|
||||
data -- suffix appended to working data before hashing
|
||||
|
Loading…
Reference in New Issue
Block a user