Move docstring before code
authorHugh Brown <hbrown@amplify.com>
Thu, 10 Oct 2013 22:53:35 +0000 (18:53 -0400)
committerHugh Brown <hbrown@amplify.com>
Thu, 10 Oct 2013 23:31:12 +0000 (19:31 -0400)
jenkinsapi/job.py

index fe5a614..d1d0302 100644 (file)
@@ -193,8 +193,8 @@ class Job(JenkinsBase, MutableJenkinsThing):
         return invocation
 
     def _buildid_for_type(self, buildtype):
-        self.poll()
         """Gets a buildid for a given type of build"""
+        self.poll()
         KNOWNBUILDTYPES = [
             "lastSuccessfulBuild",
             "lastBuild",