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 57b03f7..491e4d2 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 94294cc..5ad7080 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 )))