[27526] in Source-Commits

home help back first fref pref prev next nref lref last post

python-afs commit: Import the submodules in __init__.py

daemon@ATHENA.MIT.EDU (Jonathan D Reed)
Tue Nov 12 18:27:55 2013

Date: Tue, 12 Nov 2013 18:27:49 -0500
From: Jonathan D Reed <jdreed@MIT.EDU>
Message-Id: <201311122327.rACNRn08018700@drugstore.mit.edu>
To: source-commits@MIT.EDU

https://github.com/mit-athena/python-afs/commits/2cf0bfd86d1e074e7ef7b8de78114a5a5029baf9
commit 2cf0bfd86d1e074e7ef7b8de78114a5a5029baf9
Author: Jonathan Reed <jdreed@mit.edu>
Date:   Wed Oct 30 11:15:42 2013 -0400

    Import the submodules in __init__.py
    
    Import the submodules, so that people using the package don't
    have to import afs and then afs.fs, because that's just dumb

 afs/__init__.py |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/afs/__init__.py b/afs/__init__.py
index 723cd47..d717c3d 100644
--- a/afs/__init__.py
+++ b/afs/__init__.py
@@ -1,4 +1,9 @@
 import logging
+# Make the submodules trivally available when
+# you type "import afs"
+import afs.fs
+import afs.acl
+import afs.pts
 
 # Basic logging support for this package.
 # Add a NullHandler to avoid "No handlers could be found" error

home help back first fref pref prev next nref lref last post