[gupnp/gupnp-0.18: 7/12] Drop unused import, fix datatype error handling
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gupnp/gupnp-0.18: 7/12] Drop unused import, fix datatype error handling
- Date: Fri, 9 Dec 2011 14:39:00 +0000 (UTC)
commit 779f1368fd90d4a2aa83f1ebb08b3c4763639b17
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]