diff options
| author | Jelmer Vernooij <jelmer@samba.org> | 2011-09-13 01:27:50 +0200 |
|---|---|---|
| committer | Jelmer Vernooij <jelmer@samba.org> | 2011-09-13 03:51:13 +0200 |
| commit | 0ee22a2dec1716e0d5c0a6aee612f635800af5ef (patch) | |
| tree | aafed35c9f424a95da86652740a33b31f2bc6076 /source4/scripting/python/samba/__init__.py | |
| parent | df1d3dc777b48bc9bc10f3eb44dec90db490a899 (diff) | |
| download | samba-0ee22a2dec1716e0d5c0a6aee612f635800af5ef.tar.gz samba-0ee22a2dec1716e0d5c0a6aee612f635800af5ef.tar.bz2 samba-0ee22a2dec1716e0d5c0a6aee612f635800af5ef.zip | |
s4-python: Fix some formatting issues.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Tue Sep 13 03:51:13 CEST 2011 on sn-devel-104
Diffstat (limited to 'source4/scripting/python/samba/__init__.py')
| -rw-r--r-- | source4/scripting/python/samba/__init__.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source4/scripting/python/samba/__init__.py b/source4/scripting/python/samba/__init__.py index 03ee6faa59f..d81a25cbcf7 100644 --- a/source4/scripting/python/samba/__init__.py +++ b/source4/scripting/python/samba/__init__.py @@ -29,7 +29,7 @@ import sys import samba.param def source_tree_topdir(): - '''return the top level directory (the one containing the source4 directory)''' + """Return the top level source directory.""" paths = [ "../../..", "../../../.." ] for p in paths: topdir = os.path.normpath(os.path.join(os.path.dirname(__file__), p)) @@ -38,7 +38,7 @@ def source_tree_topdir(): raise RuntimeError("unable to find top level source directory") def in_source_tree(): - '''return True if we are running from within the samba source tree''' + """Return True if we are running from within the samba source tree""" try: topdir = source_tree_topdir() except RuntimeError: @@ -46,7 +46,6 @@ def in_source_tree(): return True - import ldb from samba._ldb import Ldb as _Ldb |
