Skip to content

Commit

Permalink
Update copyright headers for main.py main_test.py and startup_script.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
msampathkumar authored and dandhlee committed Nov 17, 2022
1 parent 066ce70 commit a1dc247
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
9 changes: 6 additions & 3 deletions error_reporting/fluent_on_compute/main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Copyright 2016 Google Inc. All rights reserved.
#!/usr/bin/env python
# Copyright 2016 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -11,8 +12,10 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# All rights reserved.

# [START error_reporting]
# [START error_reporting_fluent_on_compute]
import traceback

import fluent.event
Expand All @@ -35,7 +38,7 @@ def report(ex):
raise NameError
except Exception:
report(traceback.format_exc())
# [END error_reporting]
# [END error_reporting_fluent_on_compute]


if __name__ == '__main__':
Expand Down
5 changes: 4 additions & 1 deletion error_reporting/fluent_on_compute/main_test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Copyright 2016 Google Inc. All rights reserved.
#!/usr/bin/env python
# Copyright 2016 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -11,6 +12,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# All rights reserved.

import mock

Expand Down
4 changes: 3 additions & 1 deletion error_reporting/fluent_on_compute/startup_script.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
# Copyright 2016 Google Inc. All rights reserved.
# Copyright 2016 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -12,6 +12,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# All rights reserved.

set -v

Expand Down

0 comments on commit a1dc247

Please sign in to comment.