File tree Expand file tree Collapse file tree
api/python/building-a-ci-server Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ from __future__ import print_function
2+
13from wsgiref .simple_server import make_server
24from pyramid .config import Configurator
35from pyramid .view import view_config , view_defaults
@@ -22,7 +24,7 @@ def payload_push(self):
2224 """This method is a continuation of PayloadView process, triggered if
2325 header HTTP-X-Github-Event type is Push"""
2426 # {u'name': u'marioidival', u'email': u'marioidival@gmail.com'}
25- print self .payload ['pusher' ]
27+ print ( self .payload ['pusher' ])
2628
2729 # do busy work...
2830 return "nothing to push payload" # or simple {}
@@ -32,7 +34,7 @@ def payload_pull_request(self):
3234 """This method is a continuation of PayloadView process, triggered if
3335 header HTTP-X-Github-Event type is Pull Request"""
3436 # {u'name': u'marioidival', u'email': u'marioidival@gmail.com'}
35- print self .payload ['pusher' ]
37+ print ( self .payload ['pusher' ])
3638
3739 # do busy work...
3840 return "nothing to pull request payload" # or simple {}
You can’t perform that action at this time.
0 commit comments