diff options
author | John (J5) Palmieri <johnp@redhat.com> | 2006-07-14 16:20:12 +0000 |
---|---|---|
committer | John (J5) Palmieri <johnp@redhat.com> | 2006-07-14 16:20:12 +0000 |
commit | a929c9a3b465db8b7e17b9b39936c612c2621a7c (patch) | |
tree | d1764257d1bd56f8e6a044516ccfc9bc44f7f9f5 /python/_util.py | |
parent | 5efe8e7f1d97931710558495a951e0b35afbfb72 (diff) |
* Remove all bindings
Diffstat (limited to 'python/_util.py')
-rw-r--r-- | python/_util.py | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/python/_util.py b/python/_util.py deleted file mode 100644 index c254178e..00000000 --- a/python/_util.py +++ /dev/null @@ -1,13 +0,0 @@ -import re -from exceptions import ValidationException - -def _validate_interface_or_name(value): - elements = value.split('.') - if len(elements) <= 1: - raise ValidationException("%s must contain at least two elements seperated by a period ('.')"%(value)) - - validate = re.compile('[A-Za-z][\w_]*') - for element in elements: - if not validate.match(element): - raise ValidationException("Element %s of %s has invalid characters"%(element ,value)) - |