While testing out Harmony 770 support, I found a bug in the Python bindings' error checking of a couple functions that return something other than a libconcord return code.

Signed-Off-By: Stephen Warren <[email protected]>
Index: bindings/python/libconcord.py
===================================================================
RCS file: 
/cvsroot/concordance/concordance/libconcord/bindings/python/libconcord.py,v
retrieving revision 1.6
diff -u -p -r1.6 libconcord.py
--- bindings/python/libconcord.py       8 Mar 2009 18:52:41 -0000       1.6
+++ bindings/python/libconcord.py       23 Jun 2010 02:14:02 -0000
@@ -687,14 +687,14 @@ write_safemode_to_file = _create_func(
 # int is_fw_update_supported(int direct);
 is_fw_update_supported = _create_func(
     'is_fw_update_supported',
-    _ret_lc_concord(),
+    c_int,
     _in('direct', c_int)
 )
 
 # int is_config_safe_after_fw();
 is_config_safe_after_fw = _create_func(
     'is_config_safe_after_fw',
-    _ret_lc_concord()
+    c_int
 )
 
 # int prep_firmware();
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
concordance-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/concordance-devel

Reply via email to