summaryrefslogtreecommitdiff
path: root/python/examples
diff options
context:
space:
mode:
authorJoe Guo <joeg@catalyst.net.nz>2018-07-30 18:21:29 +1200
committerDouglas Bagnall <dbagnall@samba.org>2018-08-24 07:49:30 +0200
commit115f2a71b883567dcf324da5cd02cfc3c86431b4 (patch)
tree1e9c657b58e2186fd03e4f7ad182b945970967a0 /python/examples
parentfd6b2086cbf03d8dd0b46160f345bf7cc5551aeb (diff)
downloadsamba-115f2a71b883567dcf324da5cd02cfc3c86431b4.tar.gz
PEP8: fix E305: expected 2 blank lines after class or function definition, found 1
Signed-off-by: Joe Guo <joeg@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Diffstat (limited to 'python/examples')
-rwxr-xr-xpython/examples/samr.py1
-rwxr-xr-xpython/examples/winreg.py1
2 files changed, 2 insertions, 0 deletions
diff --git a/python/examples/samr.py b/python/examples/samr.py
index 521ea641610..c1af82105aa 100755
--- a/python/examples/samr.py
+++ b/python/examples/samr.py
@@ -106,6 +106,7 @@ def test_EnumDomains(samr, handle):
test_domain_ops(samr, dom_handle)
samr.Close(dom_handle)
+
if len(sys.argv) != 2:
print "Usage: samr.js <BINDING>"
sys.exit(1)
diff --git a/python/examples/winreg.py b/python/examples/winreg.py
index e419320b16f..eff9f5a6dc8 100755
--- a/python/examples/winreg.py
+++ b/python/examples/winreg.py
@@ -69,6 +69,7 @@ def list_path(key, path):
list_values(subkey)
return count
+
if len(args) > 1:
root = args[1]
else: