Fix NumPy style

This commit is contained in:
Arun Prakash Jana 2017-09-09 18:17:01 +05:30
parent 0b69d53219
commit d3b263905b
No known key found for this signature in database
GPG Key ID: A75979F35C080412

25
buku.py
View File

@ -2017,23 +2017,23 @@ class BukuDb:
return True
def traverse_bm_folder(self, sublist, unique_tag, folder_name, add_parent_folder_as_tag):
"""Traverse folders recursively and find bookmarks.
"""Traverse bookmark folders recursively and find bookmarks.
Parameters
----------
sublist : list
List of child entries in bookmark folder
List of child entries in bookmark folder.
unique_tag : str
Timestamp tag in YYYYMonDD format
Timestamp tag in YYYYMonDD format.
folder_name : str
Name of the parent folder
Name of the parent folder.
add_parent_folder_as_tag : bool
True if bookmark parent folders should be added as tags else False
True if bookmark parent folders should be added as tags else False.
Returns
-------
tuple
Bookmark record data
Bookmark record data.
"""
for item in sublist:
@ -2062,14 +2062,9 @@ class BukuDb:
path : str
Path to Google Chrome bookmarks file.
unique_tag : str
Timestamp tag in YYYYMonDD format
Timestamp tag in YYYYMonDD format.
add_parent_folder_as_tag : bool
True if bookmark parent folders should be added as tags else False
Returns
-------
bookmarks : dict
Dictionary holding Google Chrome bookmarks data.
True if bookmark parent folders should be added as tags else False.
"""
with open(path, 'r') as datafile:
@ -2088,9 +2083,9 @@ class BukuDb:
path : str
Path to Firefox bookmarks sqlite database.
unique_tag : str
Timestamp tag in YYYYMonDD format
Timestamp tag in YYYYMonDD format.
add_parent_folder_as_tag : bool
True if bookmark parent folders should be added as tags else False
True if bookmark parent folders should be added as tags else False.
"""
# Connect to input DB