Bug 1379163: add missing license headers; r?bstack draft
authorDustin J. Mitchell <dustin@mozilla.com>
Wed, 19 Jul 2017 21:37:11 +0000
changeset 614538 dbdf743745f18fe44a593505c99766dfb00e070d
parent 614537 601d05280d9e429aa419741382682a0b28b2d317
child 614539 c9fc844e9263a0afddbbf5707b848b6d86a9e4ee
push id70037
push userdmitchell@mozilla.com
push dateMon, 24 Jul 2017 17:55:55 +0000
reviewersbstack
bugs1379163
milestone56.0a1
Bug 1379163: add missing license headers; r?bstack MozReview-Commit-ID: 64AXiMZKOO4
taskcluster/actions/__init__.py
taskcluster/actions/hello-action.py
taskcluster/actions/registry.py
--- a/taskcluster/actions/__init__.py
+++ b/taskcluster/actions/__init__.py
@@ -1,9 +1,17 @@
-from registry import (
+# -*- coding: utf-8 -*-
+
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+from __future__ import absolute_import, print_function, unicode_literals
+
+from .registry import (
     register_task_action, register_callback_action, render_actions_json, trigger_action_callback,
 )
 
 __all__ = [
     'register_task_action',
     'register_callback_action',
     'render_actions_json',
     'trigger_action_callback',
--- a/taskcluster/actions/hello-action.py
+++ b/taskcluster/actions/hello-action.py
@@ -1,8 +1,16 @@
+# -*- coding: utf-8 -*-
+
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+from __future__ import absolute_import, print_function, unicode_literals
+
 from .registry import register_callback_action
 
 
 @register_callback_action(
     name='hello',
     title='Say Hello',
     symbol='hw',
     description="""
@@ -20,12 +28,12 @@ from .registry import register_callback_
 A name wish to say hello to...
 This should normally be **your name**.
 
 But you can also use the default value `'World'`.
         """.strip(),
     },
 )
 def hello_world_action(parameters, input, task_group_id, task_id, task):
-    print "This message was triggered from context-menu of taskId: {}".format(task_id)
-    print ""
-    print "Hello {}".format(input)
-    print "--- Action is now executed"
+    print("This message was triggered from context-menu of taskId: {}".format(task_id))
+    print("")
+    print("Hello {}".format(input))
+    print("--- Action is now executed")
--- a/taskcluster/actions/registry.py
+++ b/taskcluster/actions/registry.py
@@ -1,8 +1,16 @@
+# -*- coding: utf-8 -*-
+
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+from __future__ import absolute_import, print_function, unicode_literals
+
 import json
 import os
 import inspect
 import re
 from types import FunctionType
 from collections import namedtuple
 from taskgraph.util.docker import docker_image
 from taskgraph.parameters import Parameters