Bug 1379163: add missing license headers; r=bstack
authorDustin J. Mitchell <dustin@mozilla.com>
Wed, 19 Jul 2017 21:37:11 +0000
changeset 419359 963b59bd61a365410ab14867e1d2994a7b2f94c7
parent 419358 c1c986b9d8ff08525f42435677ee2f3652fc937d
child 419360 2e143d567065e0ae90fa11268225b6b5572bdedd
push id7566
push usermtabara@mozilla.com
push dateWed, 02 Aug 2017 08:25:16 +0000
treeherdermozilla-beta@86913f512c3c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbstack
bugs1379163
milestone56.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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