aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFilipp Lepalaan <f@0x00.co>2013-01-10 09:30:09 +0200
committerFilipp Lepalaan <f@0x00.co>2013-01-10 09:30:09 +0200
commit572cc5d53b6908dd4492f7ac1b9520494c03bc11 (patch)
treef3afa5ff294a2f1a713bd9639f4c687a4749557e
parent767ae35d218528768902a9b9d12ba93d3a17b687 (diff)
downloadpy-gsxws-572cc5d53b6908dd4492f7ac1b9520494c03bc11.tar.gz
py-gsxws-572cc5d53b6908dd4492f7ac1b9520494c03bc11.tar.bz2
py-gsxws-572cc5d53b6908dd4492f7ac1b9520494c03bc11.zip
looks_like() -> validate()
-rwxr-xr-xgsx.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/gsx.py b/gsx.py
index 9654da3..2f42fcc 100755
--- a/gsx.py
+++ b/gsx.py
@@ -12,9 +12,10 @@ logging.getLogger('suds.client').setLevel(logging.DEBUG)
CLIENT = None
SESSION = dict() # module-level variable
-def looks_like(value, what=None):
+def validate(value, what=None):
"""
- Tries to guess the meaning of value
+ Tries to guess the meaning of value or validate that
+ value looks like what it's supposed to be.
"""
result = None