[Pkg-debile-commits] [debile-master] 22/28: Use correctly replace function in python

Léo Cavaillé leo.cavaille-guest at alioth.debian.org
Wed Aug 21 13:36:52 UTC 2013


This is an automated email from the git hooks/post-receive script.

leo.cavaille-guest pushed a commit to branch master
in repository debile-master.

commit 3d3f955e72be60b6d2293a2634179db7c3449c01
Author: Léo Cavaillé <leo at cavaille.net>
Date:   Sat Aug 17 14:54:12 2013 +0200

    Use correctly replace function in python
---
 lucy/server.py |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/lucy/server.py b/lucy/server.py
index 06ad76a..2e47be2 100644
--- a/lucy/server.py
+++ b/lucy/server.py
@@ -232,8 +232,7 @@ class LucyInterface(object):
             raise Exception("Bad code is bad")
 
         dscpath = dscpath[0]
-        dscpath.replace(pool_path, config.get('paths', 'pool_url'))
-        return dscpath
+        return dscpath.replace(pool_path, config.get('paths', 'pool_url'))
 
     def get_write_location(self, job_uuid):
         """
@@ -266,8 +265,7 @@ class LucyInterface(object):
             raise Exception("Bad code is bad")
 
         debpath = debpath[0]
-        debpath.replace(pool_path, config.get('paths', 'pool_url'))
-        return debpath
+        return debpath.replace(pool_path, config.get('paths', 'pool_url'))
 
     @machine_method
     def get_current_jobs(self):

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-debile/debile-master.git



More information about the Pkg-debile-commits mailing list