From a15972f20da781f61767b060a1243bb2a53ca5ad Mon Sep 17 00:00:00 2001 From: Steven Armstrong Date: Thu, 6 Oct 2011 13:21:48 +0200 Subject: [PATCH 1/2] +docstring Signed-off-by: Steven Armstrong --- lib/cdist/core/type.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/cdist/core/type.py b/lib/cdist/core/type.py index c35e0ad8..126b4d16 100644 --- a/lib/cdist/core/type.py +++ b/lib/cdist/core/type.py @@ -25,6 +25,13 @@ import cdist class Type(object): + """Represents a cdist type. + + All interaction with types in cdist should be done through this class. + Directly accessing an type through the file system from python code is + a bug. + + """ @staticmethod def base_dir(): From 0d9906b0b8f678a2359bc6728aef81753d0456ef Mon Sep 17 00:00:00 2001 From: Steven Armstrong Date: Thu, 6 Oct 2011 15:18:06 +0200 Subject: [PATCH 2/2] --typo, missing colon Signed-off-by: Steven Armstrong --- lib/cdist/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cdist/__init__.py b/lib/cdist/__init__.py index 864b4f37..1f325a8c 100644 --- a/lib/cdist/__init__.py +++ b/lib/cdist/__init__.py @@ -29,7 +29,7 @@ class Error(Exception): class MissingEnvironmentVariableError(Error): """Raised when a required environment variable is not set.""" - def __init__(self, name) + def __init__(self, name): self.name = name def __str__(self):