summaryrefslogtreecommitdiffstats
path: root/scratch.py
diff options
context:
space:
mode:
authorKyle Kaminski <kyle.kaminski@trustwave.com>2021-08-18 14:11:12 -0500
committerKyle Kaminski <kyle.kaminski@trustwave.com>2021-08-18 14:34:14 -0500
commita6ec4b92d10e19992f5ba603c25587141782b746 (patch)
treea636f5e04613cba697a4a602e78c4e31c74e55a7 /scratch.py
parent6505c9503c4925a2022a027a2414541a6cc20810 (diff)
downloadPythonPractice-a6ec4b92d10e19992f5ba603c25587141782b746.tar.gz
PythonPractice-a6ec4b92d10e19992f5ba603c25587141782b746.tar.bz2
PythonPractice-a6ec4b92d10e19992f5ba603c25587141782b746.zip
add python katello example of pulling hosts inventory via its API
Diffstat (limited to 'scratch.py')
-rw-r--r--scratch.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/scratch.py b/scratch.py
index cb03373..296cb36 100644
--- a/scratch.py
+++ b/scratch.py
@@ -1,3 +1,12 @@
import sys
-print("hello, {0}".format('world!')) \ No newline at end of file
+class Baz:
+ def hello(self):
+ print(foo)
+
+if True:
+ foo = 'bar'
+
+print("hello, {0}".format('world!'))
+c = Baz()
+c.hello() \ No newline at end of file