[gupnp] Drop unused import, fix datatype error handling
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gupnp] Drop unused import, fix datatype error handling
- Date: Tue, 8 Nov 2011 09:51:31 +0000 (UTC)
commit 5d6389bbce505c2a0466110eedb6c2a313b8740a
Author: Ville Skyttà <ville skytta iki fi>
Date: Wed Oct 5 00:16:59 2011 +0300
Drop unused import, fix datatype error handling
tools/gupnp-binding-tool | 4 ++--
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]