[ovs-git] Open vSwitch: ovsdb: Fix formatting of ovs.db.Error on Python 2.6. (master)

dev at openvswitch.org dev at openvswitch.org
Tue Nov 2 20:29:09 UTC 2010


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Open vSwitch".

The branch, master has been updated
       via  0f9fc40325e390f23ef46cb2b3588da6b97ad5b1 (commit)
      from  ac0ceab6e39da04d146b41a8a2828c7288941a00 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 0f9fc40325e390f23ef46cb2b3588da6b97ad5b1
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=0f9fc40325e390f23ef46cb2b3588da6b97ad5b1
Author: Ben Pfaff <blp at nicira.com>
		
ovsdb: Fix formatting of ovs.db.Error on Python 2.6.
		
All of the negative Python OVSDB tests were failing on Python 2.6 because
"%s\n" % e yielded the empty string on that version of Python.  In turn,
that was because ovs.db.error.Error.__unicode__ was being called instead of
ovs.db.error.Error.__str__.  I'm puzzled why that was happening, but this
commit fixes it and also seems like a small code cleanup.

Peter Balland helped me gain some insight on this problem.

CC: Peter Balland <peter at nicira.com>
CC: Reid Price <reid at nicira.com>


-----------------------------------------------------------------------

Summary of changes:
 python/ovs/db/error.py |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
Open vSwitch




More information about the git mailing list