Fix python grammar for 3 compatibility
authorsalimfadhley <sal@stodge.org>
Wed, 4 Jul 2012 23:06:33 +0000 (00:06 +0100)
committersalimfadhley <sal@stodge.org>
Wed, 4 Jul 2012 23:06:33 +0000 (00:06 +0100)
examples/search_artifact_by_regexp.py
examples/search_artifacts.py

index 57b03f7b8ba865f6c06bc6868cc9e7748af894c1..491e4d296b9f5125c65349484b68f57252b5013d 100644 (file)
@@ -1,8 +1,8 @@
-from jenkinsapi.api import search_artifact_by_regexp\r
-import re\r
-\r
-jenkinsurl = "http://localhost:8080/jenkins"\r
-jobid = "test1"\r
-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
+from jenkinsapi.api import search_artifact_by_regexp
+import re
+
+jenkinsurl = "http://localhost:8080/jenkins"
+jobid = "test1"
+artifact_regexp = re.compile("test1\.txt") # A file name I want.
+result = search_artifact_by_regexp(jenkinsurl, jobid, artifact_regexp)
+print((repr(result)))
index 94294cc4eba3ed7dae9ef3c1ae8cc2e1d6788b1f..5ad708011ebbb610cf2e357d9a0721cc52d99e3e 100644 (file)
@@ -1,7 +1,7 @@
-from jenkinsapi.api import search_artifacts\r
-\r
-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
-result = search_artifacts(jenkinsurl, jobid, artifact_ids)\r
-print repr(result )\r
+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 )))