From 702c757d6f846dda9662bc0cee44b4f701b8aea2 Mon Sep 17 00:00:00 2001 From: Eric Edgar Date: Wed, 7 Aug 2013 10:10:04 -0700 Subject: [PATCH 1/2] Fix pep8 and none type issues. --- zpg/Property.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/zpg/Property.py b/zpg/Property.py index de15c37..58b2699 100644 --- a/zpg/Property.py +++ b/zpg/Property.py @@ -122,12 +122,13 @@ def value(self, value): self._value = 'None' if value is None else value if self.type_ == 'list' or self.type_ == 'lines': self._value = [] - for item in value: - if isinstance(item, unicode): - self._value.append(item.encode('utf-8')) - else: - self._value.append(item) - + if value: + for item in value: + if isinstance(item, unicode): + self._value.append(item.encode('utf-8')) + else: + self._value.append(item) + @property def quoted_value(self): value = self.value From 1311b61274e423b1e1eb001571307f04963de32f Mon Sep 17 00:00:00 2001 From: Eric Edgar Date: Wed, 7 Aug 2013 10:10:41 -0700 Subject: [PATCH 2/2] Bump version. --- zpg/_defaults.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zpg/_defaults.py b/zpg/_defaults.py index e44b3e8..fd5bf70 100644 --- a/zpg/_defaults.py +++ b/zpg/_defaults.py @@ -26,7 +26,7 @@ 'author': 'ZenossLabs ', 'author_email': 'labs@zenoss.com', 'description': 'A tool to assist building zenpacks.', - 'version': '1.0.10', + 'version': '1.0.11', 'license': 'GPLv2', 'component_classes': [ 'Products.ZenModel.DeviceComponent.DeviceComponent',