Thomas Gläßle avatar Thomas Gläßle committed ae92a77

Add module docstrings and __all__

Comments (0)

Files changed (7)

udiskie/automount.py

+"""
+Udiskie automounter daemon.
+"""
+__all__ = ['AutoMounter']
+
 import logging
 
 class AutoMounter:

udiskie/device.py

+"""
+Udisks wrapper utilities.
+
+These act as a convenience abstraction layer on the udisks dbus service.
+
+"""
+__all__ = ['Device', 'get_all', 'get_all_handleable', 'get_device']
+
 import logging
 import os
 import dbus
+"""
+Filters for udiskie mount tools.
+"""
+__all__ = ['InvalidFilter', 'OptionFilter', 'Filters', 'FilterMatcher']
+
 from ConfigParser import SafeConfigParser
 import logging
 import re
+"""
+Udiskie mount utilities.
+"""
+__all__ = ['Mounter', 'option_parser', 'cli']
+
 import warnings
 warnings.filterwarnings("ignore", ".*could not open display.*", Warning)
 warnings.filterwarnings("ignore", ".*g_object_unref.*", Warning)

udiskie/notify.py

+"""
+Udiskie notification daemon.
+"""
+__all__ = ['Notify']
+
 import pynotify
 import gio
 

udiskie/prompt.py

+"""
+Udiskie user prompt utility.
+"""
+__all__ = ['password']
+
 import importlib
 import subprocess
 from distutils.spawn import find_executable

udiskie/umount.py

+"""
+Udiskie unmount utilities.
+"""
+__all__ = [
+    'unmount_device', 'lock_device', 'remove_device', 'lock_slave',
+    'unmount', 'unmount_all', 'option_parser', 'cli']
+
 import warnings
 warnings.filterwarnings("ignore", ".*could not open display.*", Warning)
 warnings.filterwarnings("ignore", ".*g_object_unref.*", Warning)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.