summaryrefslogtreecommitdiff
path: root/pycadf/tag.py
diff options
context:
space:
mode:
authorGordon Chung <chungg@ca.ibm.com>2013-08-07 16:36:33 -0400
committerGordon Chung <chungg@ca.ibm.com>2013-08-07 16:36:33 -0400
commit959e7fc797f368b9809ca2cde704ef0c32de0e70 (patch)
treec23fbe2b19c74f7ed20c4c9fbc867e54fa0d57a9 /pycadf/tag.py
parent7bf0f20abe7e721f28d9638c32e05e3e40d95356 (diff)
downloadpycadf-959e7fc797f368b9809ca2cde704ef0c32de0e70.tar.gz
validate attributes against basestring0.1.10.1
- need to update attribute validation to test against basestring instead of str - drop use of openstack logger Change-Id: I2167cf8e468c0e932c476238120d768e5d4d443f Fixes: bug1209387
Diffstat (limited to 'pycadf/tag.py')
-rw-r--r--pycadf/tag.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pycadf/tag.py b/pycadf/tag.py
index 2539978..fbe7532 100644
--- a/pycadf/tag.py
+++ b/pycadf/tag.py
@@ -29,6 +29,6 @@ def generate_name_value_tag(name, value):
# TODO(mrutkows): validate any Tag's name?value= format
def is_valid(value):
- if not isinstance(value, str):
+ if not isinstance(value, basestring):
raise TypeError
return True