From 5c7f0515f4263cec7057932d83896a9f51c1f7ba Mon Sep 17 00:00:00 2001 From: Ramon van Alteren Date: Wed, 8 Feb 2012 11:12:43 +0100 Subject: [PATCH] Cleaned up whitespace in examples --- examples/search_artifact_by_regexp.py | 9 +++------ examples/search_artifacts.py | 6 ++---- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/examples/search_artifact_by_regexp.py b/examples/search_artifact_by_regexp.py index 60195b5..57b03f7 100644 --- a/examples/search_artifact_by_regexp.py +++ b/examples/search_artifact_by_regexp.py @@ -1,11 +1,8 @@ from jenkinsapi.api import search_artifact_by_regexp -import logging import re jenkinsurl = "http://localhost:8080/jenkins" jobid = "test1" -artifactRegExp = re.compile( "test1\.txt" ) # A file name I want. - -result = search_artifact_by_regexp( jenkinsurl, jobid, artifactRegExp ) - -print repr( result ) \ No newline at end of file +artifact_regexp = re.compile("test1\.txt") # A file name I want. +result = search_artifact_by_regexp(jenkinsurl, jobid, artifact_regexp) +print repr(result) diff --git a/examples/search_artifacts.py b/examples/search_artifacts.py index a26de5d..94294cc 100644 --- a/examples/search_artifacts.py +++ b/examples/search_artifacts.py @@ -3,7 +3,5 @@ from jenkinsapi.api import search_artifacts jenkinsurl = "http://localhost:8080/jenkins" jobid = "test1" artifact_ids = [ "test1.txt", "test2.txt" ] # I need a build that contains all of these - -result = search_artifacts( jenkinsurl, jobid, artifact_ids ) - -print repr( result ) \ No newline at end of file +result = search_artifacts(jenkinsurl, jobid, artifact_ids) +print repr(result ) -- 2.34.1