about summary refs log tree commit diff stats
path: root/ranger/fsobject/directory.py
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2013-02-22 20:24:09 +0100
committerhut <hut@lavabit.com>2013-02-22 20:24:09 +0100
commitb68d28c1da376547672ca00ef7bc16e94030db18 (patch)
tree3cef942ff76812606623666184555132a862d5b1 /ranger/fsobject/directory.py
parentc1138eb006c6daaa9b88204b0695f18d55e027dc (diff)
downloadranger-b68d28c1da376547672ca00ef7bc16e94030db18.tar.gz
Fix docstrings to comply with the PEP8
http://www.python.org/dev/peps/pep-0008/#documentation-strings
Diffstat (limited to 'ranger/fsobject/directory.py')
-rw-r--r--ranger/fsobject/directory.py14
1 files changed, 6 insertions, 8 deletions
diff --git a/ranger/fsobject/directory.py b/ranger/fsobject/directory.py
index 3785abfc..43fdff65 100644
--- a/ranger/fsobject/directory.py
+++ b/ranger/fsobject/directory.py
@@ -164,7 +164,8 @@ class Directory(FileSystemObject, Accumulator, Loadable, SettingsAware):
 
     # XXX: Check for possible race conditions
     def load_bit_by_bit(self):
-        """
+        """An iterator that loads a part on every next() call
+
         Returns a generator which load a part of the directory
         in each iteration.
         """
@@ -287,9 +288,9 @@ class Directory(FileSystemObject, Accumulator, Loadable, SettingsAware):
         self.load_generator = None
 
     def load_content(self, schedule=None):
-        """
-        Loads the contents of the directory. Use this sparingly since
-        it takes rather long.
+        """Loads the contents of the directory.
+
+        Use this sparingly since it takes rather long.
         """
         self.content_outdated = False
 
@@ -474,10 +475,7 @@ class Directory(FileSystemObject, Accumulator, Loadable, SettingsAware):
         return False
 
     def load_content_if_outdated(self, *a, **k):
-        """
-        Load the contents of the directory if it's
-        outdated or not done yet
-        """
+        """Load the contents of the directory if outdated"""
 
         if self.load_content_once(*a, **k): return True