[Kimchi-devel] [PATCH] pep8 cleanup for cachebust.py

Rodrigo Trujillo rodrigo.trujillo at linux.vnet.ibm.com
Fri Dec 20 21:18:10 UTC 2013


Reviewed-by: Rodrigo Trujillo <rodrigo.trujillo at linux.vnet.ibm.com>


On 12/20/2013 12:35 PM, Aline Manera wrote:
> From: Aline Manera <alinefm at br.ibm.com>
>
> This patch cleans up pep8 style issue in cachebust.py
>
> Signed-off-by: Aline Manera <alinefm at br.ibm.com>
> ---
>   Makefile.am             |    1 +
>   src/kimchi/cachebust.py |    4 ++--
>   2 files changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/Makefile.am b/Makefile.am
> index e57d3b6..2c390c4 100644
> --- a/Makefile.am
> +++ b/Makefile.am
> @@ -39,6 +39,7 @@ EXTRA_DIST = \
>   # So it will be checked from now on.
>   PEP8_WHITELIST = \
>   	src/kimchi/asynctask.py \
> +	src/kimchi/cachebust.py \
>   	src/kimchi/config.py.in \
>   	src/kimchi/disks.py \
>   	src/kimchi/server.py \
> diff --git a/src/kimchi/cachebust.py b/src/kimchi/cachebust.py
> index 4dcfb56..9a71f4f 100644
> --- a/src/kimchi/cachebust.py
> +++ b/src/kimchi/cachebust.py
> @@ -18,7 +18,7 @@
>   #
>   # You should have received a copy of the GNU Lesser General Public
>   # License along with this library; if not, write to the Free Software
> -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
> +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA
>
>   import os
>
> @@ -28,6 +28,6 @@ from kimchi.config import get_prefix
>
>   def href(url):
>       # for error.html, url is absolute path
> -    f = os.path.join(get_prefix(),'ui', url.lstrip("/"))
> +    f = os.path.join(get_prefix(), 'ui', url.lstrip("/"))
>       mtime = os.path.getmtime(f)
>       return "%s?cacheBust=%s" % (url, mtime)




More information about the Kimchi-devel mailing list