File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
api/python/building-a-ci-server Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change
1
+ from __future__ import print_function
2
+
1
3
from wsgiref .simple_server import make_server
2
4
from pyramid .config import Configurator
3
5
from pyramid .view import view_config , view_defaults
@@ -22,7 +24,7 @@ def payload_push(self):
22
24
"""This method is a continuation of PayloadView process, triggered if
23
25
header HTTP-X-Github-Event type is Push"""
24
26
# {u'name': u'marioidival', u'email': u'[email protected] '}
25
- print self .payload ['pusher' ]
27
+ print ( self .payload ['pusher' ])
26
28
27
29
# do busy work...
28
30
return "nothing to push payload" # or simple {}
@@ -32,7 +34,7 @@ def payload_pull_request(self):
32
34
"""This method is a continuation of PayloadView process, triggered if
33
35
header HTTP-X-Github-Event type is Pull Request"""
34
36
# {u'name': u'marioidival', u'email': u'[email protected] '}
35
- print self .payload ['pusher' ]
37
+ print ( self .payload ['pusher' ])
36
38
37
39
# do busy work...
38
40
return "nothing to pull request payload" # or simple {}
You can’t perform that action at this time.
0 commit comments