summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2011-10-05 00:16:59 +0300
committerDavid King <davidk@openismus.com>2011-11-08 10:50:48 +0100
commit5d6389bbce505c2a0466110eedb6c2a313b8740a (patch)
tree1ae4217549c8965ca8ec1b45c10e88e5086ac063 /tools
parent26e55de87d4943740ed51ff6a6774dd348664485 (diff)
downloadgupnp-5d6389bbce505c2a0466110eedb6c2a313b8740a.tar.gz
Drop unused import, fix datatype error handling
Diffstat (limited to 'tools')
-rwxr-xr-xtools/gupnp-binding-tool4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/gupnp-binding-tool b/tools/gupnp-binding-tool
index f3e63c7..120fffb 100755
--- a/tools/gupnp-binding-tool
+++ b/tools/gupnp-binding-tool
@@ -23,7 +23,7 @@
# - could warn if values outside allowedValueRange are used in *_action_set()
# - add option to generate skeleton source code that uses the bindings?
-import sys, os.path, re, xml.etree.ElementTree as ET
+import os.path, re, xml.etree.ElementTree as ET
from optparse import OptionParser
@@ -162,7 +162,7 @@ def getVariables(var_elements, prefix):
dataType = varElement.find("{urn:schemas-upnp-org:service-1-0}dataType").text
if not dataType in typemap:
- raise Exception("Unknown dataType %s" % data_type)
+ raise Exception("Unknown dataType %s" % dataType)
(var.ctype, var.gtype, g_value_type) = typemap[dataType];
var.get_function = "g_value_get_" + g_value_type
var.set_function = "g_value_set_" + g_value_type