Cleaned up whitespace in examples
authorRamon van Alteren <ramon@vanalteren.nl>
Wed, 8 Feb 2012 10:12:43 +0000 (11:12 +0100)
committerRamon van Alteren <ramon@vanalteren.nl>
Wed, 8 Feb 2012 14:13:34 +0000 (15:13 +0100)
examples/search_artifact_by_regexp.py
examples/search_artifacts.py

index 60195b5c6849b91ab539c07d84994e3da36d6210..57b03f7b8ba865f6c06bc6868cc9e7748af894c1 100644 (file)
@@ -1,11 +1,8 @@
 from jenkinsapi.api import search_artifact_by_regexp\r
-import logging\r
 import re\r
 \r
 jenkinsurl = "http://localhost:8080/jenkins"\r
 jobid = "test1"\r
-artifactRegExp = re.compile( "test1\.txt" ) # A file name I want.\r
-\r
-result = search_artifact_by_regexp( jenkinsurl, jobid, artifactRegExp )\r
-\r
-print repr( result )
\ No newline at end of file
+artifact_regexp = re.compile("test1\.txt") # A file name I want.\r
+result = search_artifact_by_regexp(jenkinsurl, jobid, artifact_regexp)\r
+print repr(result)\r
index a26de5d7f81986f7e3361fd6551c2c1d29b48e0d..94294cc4eba3ed7dae9ef3c1ae8cc2e1d6788b1f 100644 (file)
@@ -3,7 +3,5 @@ from jenkinsapi.api import search_artifacts
 jenkinsurl = "http://localhost:8080/jenkins"\r
 jobid = "test1"\r
 artifact_ids = [ "test1.txt", "test2.txt" ] # I need a build that contains all of these\r
-\r
-result = search_artifacts( jenkinsurl, jobid, artifact_ids )\r
-\r
-print repr( result )
\ No newline at end of file
+result = search_artifacts(jenkinsurl, jobid, artifact_ids)\r
+print repr(result )\r