From b4555e9845a6643786c90ba5315786a0583cb458 Mon Sep 17 00:00:00 2001 From: Rudi Grinberg Date: Tue, 6 Nov 2012 13:51:04 -0500 Subject: [PATCH] docstring formatting --- .../media-monitor2/media/monitor/owners.py | 26 ++++++------------- 1 file changed, 8 insertions(+), 18 deletions(-) diff --git a/python_apps/media-monitor2/media/monitor/owners.py b/python_apps/media-monitor2/media/monitor/owners.py index 9d9c043bf..85cbf3430 100644 --- a/python_apps/media-monitor2/media/monitor/owners.py +++ b/python_apps/media-monitor2/media/monitor/owners.py @@ -5,26 +5,20 @@ log = get_logger() owners = {} def reset_owners(): - """ - Wipes out all file => owner associations - """ + """ Wipes out all file => owner associations """ global owners owners = {} def get_owner(f): - """ - Get the owner id of the file 'f' - """ + """ Get the owner id of the file 'f' """ return owners[f] if f in owners else -1 def add_file_owner(f,owner): - """ - Associate file f with owner. If owner is -1 then do we will not record it - because -1 means there is no owner. Returns True if f is being stored after - the function. False otherwise. - """ + """ Associate file f with owner. If owner is -1 then do we will not record + it because -1 means there is no owner. Returns True if f is being stored + after the function. False otherwise. """ if owner == -1: return False if f in owners: if owner != owners[f]: # check for fishiness @@ -35,16 +29,12 @@ def add_file_owner(f,owner): return True def has_owner(f): - """ - True if f is owned by somebody. False otherwise. - """ + """ True if f is owned by somebody. False otherwise. """ return f in owners def remove_file_owner(f): - """ - Try and delete any association made with file f. Returns true if the the - association was actually deleted. False otherwise. - """ + """ Try and delete any association made with file f. Returns true if + the the association was actually deleted. False otherwise. """ if f in owners: del owners[f] return True