summaryrefslogtreecommitdiffstats
path: root/server/yaml/__init__.py
diff options
context:
space:
mode:
authorAdrian Likins <alikins@grimlock.devel.redhat.com>2007-09-20 15:08:27 -0400
committerAdrian Likins <alikins@grimlock.devel.redhat.com>2007-09-20 15:08:27 -0400
commit733df2df42180487608688951acf1a83e079a86c (patch)
tree01917e26d60194ac294008a95394d18029522b32 /server/yaml/__init__.py
parentd96d4b72aebee6dc1089dd260705c23cb1b9cd27 (diff)
downloadthird_party-func-733df2df42180487608688951acf1a83e079a86c.tar.gz
third_party-func-733df2df42180487608688951acf1a83e079a86c.tar.xz
third_party-func-733df2df42180487608688951acf1a83e079a86c.zip
initial code drop
module_loader from the virt-factory node server xmlrpc server from the virt-factory-server code and some test modules no ssl support yet, no init scripts, no packagin etc
Diffstat (limited to 'server/yaml/__init__.py')
-rwxr-xr-xserver/yaml/__init__.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/server/yaml/__init__.py b/server/yaml/__init__.py
new file mode 100755
index 0000000..419d1f3
--- /dev/null
+++ b/server/yaml/__init__.py
@@ -0,0 +1,17 @@
+__version__ = "0.32"
+from load import loadFile, load, Parser, l
+from dump import dump, dumpToFile, Dumper, d
+from stream import YamlLoaderException, StringStream, FileStream
+from timestamp import timestamp
+import sys
+if sys.hexversion >= 0x02020000:
+ from redump import loadOrdered
+
+try:
+ from ypath import ypath
+except NameError:
+ def ypath(expr,target='',cntx=''):
+ raise NotImplementedError("ypath requires Python 2.2")
+
+if sys.hexversion < 0x02010000:
+ raise 'YAML is not tested for pre-2.1 versions of Python'