[Erp5-report] r44253 nicolas - /erp5/trunk/products/ERP5VCS/SubversionClient.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Mar 14 17:05:26 CET 2011
Author: nicolas
Date: Mon Mar 14 17:05:26 2011
New Revision: 44253
URL: http://svn.erp5.org?rev=44253&view=rev
Log:
Older versions of pysvn returns unicode instead of string.
Force encoding into utf-8
Modified:
erp5/trunk/products/ERP5VCS/SubversionClient.py
Modified: erp5/trunk/products/ERP5VCS/SubversionClient.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5VCS/SubversionClient.py?rev=44253&r1=44252&r2=44253&view=diff
==============================================================================
--- erp5/trunk/products/ERP5VCS/SubversionClient.py [utf8] (original)
+++ erp5/trunk/products/ERP5VCS/SubversionClient.py [utf8] Mon Mar 14 17:05:26 2011
@@ -141,6 +141,11 @@ try:
if not username or not password:
self.client.setException(SubversionLoginError(realm))
return False, '', '', False
+ # BBB. support older versions of pysvn <= 1.6.3
+ if isinstance(user, unicode):
+ user = user.encode('utf-8')
+ if isinstance(password, unicode):
+ password = password.encode('utf-8')
return True, user, password, False
class NotifyCallback(Callback):
More information about the Erp5-report
mailing list