From f98e6380f15c68a052e7ccb03b123b6eb91474ea Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Wed, 13 Aug 2014 03:14:34 +0100 Subject: add in whitespace after copyright statements to improve legibility --- tests/test_distributor.py | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/test_distributor.py') diff --git a/tests/test_distributor.py b/tests/test_distributor.py index 36cbf6c52d..db23f16673 100644 --- a/tests/test_distributor.py +++ b/tests/test_distributor.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- import unittest from twisted.internet import defer -- cgit 1.4.1 From 3e35a9f96eae1720afbbd754f9e96e62070197d0 Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Wed, 13 Aug 2014 03:32:18 +0100 Subject: add in copyrights to everything, not just the synapse subdir, and add a copyrighter.pl whilst we're at it --- cmdclient/console.py | 17 +++++++++++++- cmdclient/http.py | 14 ++++++++++++ experiments/cursesio.py | 14 ++++++++++++ experiments/test_messaging.py | 14 ++++++++++++ graph/graph.py | 14 ++++++++++++ scripts/copyrighter.pl | 33 +++++++++++++++++++++++++++ setup.py | 14 ++++++++++++ tests/__init__.py | 14 ++++++++++++ tests/events/__init__.py | 14 ++++++++++++ tests/events/test_events.py | 14 ++++++++++++ tests/federation/test_federation.py | 14 ++++++++++++ tests/federation/test_pdu_codec.py | 14 ++++++++++++ tests/handlers/test_federation.py | 14 ++++++++++++ tests/handlers/test_presence.py | 14 ++++++++++++ tests/handlers/test_presencelike.py | 14 ++++++++++++ tests/handlers/test_profile.py | 14 ++++++++++++ tests/handlers/test_room.py | 14 ++++++++++++ tests/rest/__init__.py | 14 ++++++++++++ tests/rest/test_events.py | 14 ++++++++++++ tests/rest/test_presence.py | 14 ++++++++++++ tests/rest/test_profile.py | 14 ++++++++++++ tests/rest/test_rooms.py | 14 ++++++++++++ tests/rest/utils.py | 14 ++++++++++++ tests/storage/test_base.py | 14 ++++++++++++ tests/test_distributor.py | 14 ++++++++++++ tests/test_state.py | 14 ++++++++++++ tests/test_types.py | 15 ++++++++++++ tests/util/__init__.py | 14 ++++++++++++ tests/util/test_lock.py | 14 ++++++++++++ tests/utils.py | 15 ++++++++++++ webclient/app-controller.js | 16 +++++++++++++ webclient/app.js | 16 +++++++++++++ webclient/components/matrix/matrix-service.js | 16 +++++++++++++ webclient/room/room-controller.js | 16 +++++++++++++ webclient/rooms/rooms-controller.js | 16 +++++++++++++ 35 files changed, 523 insertions(+), 1 deletion(-) create mode 100755 scripts/copyrighter.pl (limited to 'tests/test_distributor.py') diff --git a/cmdclient/console.py b/cmdclient/console.py index 595ce429cd..6c6e2085b4 100755 --- a/cmdclient/console.py +++ b/cmdclient/console.py @@ -1,4 +1,19 @@ -#! /usr/bin/env python +#!/usr/bin/env python + +# Copyright 2014 matrix.org +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# 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. + """ Starts a synapse client console. """ from twisted.internet import reactor, defer, threads diff --git a/cmdclient/http.py b/cmdclient/http.py index e71593837a..9de6be9b72 100644 --- a/cmdclient/http.py +++ b/cmdclient/http.py @@ -1,4 +1,18 @@ # -*- coding: utf-8 -*- +# Copyright 2014 matrix.org +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# 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. + from twisted.web.client import Agent, readBody from twisted.web.http_headers import Headers from twisted.internet import defer, reactor diff --git a/experiments/cursesio.py b/experiments/cursesio.py index 83b4a9f186..31fbda5504 100644 --- a/experiments/cursesio.py +++ b/experiments/cursesio.py @@ -1,3 +1,17 @@ +# Copyright 2014 matrix.org +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# 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. + import curses import curses.wrapper from curses.ascii import isprint diff --git a/experiments/test_messaging.py b/experiments/test_messaging.py index 9a45425173..f4ae71bfc4 100644 --- a/experiments/test_messaging.py +++ b/experiments/test_messaging.py @@ -1,4 +1,18 @@ # -*- coding: utf-8 -*- +# Copyright 2014 matrix.org +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# 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. + """ This is an example of using the server to server implementation to do a basic chat style thing. It accepts commands from stdin and outputs to stdout. diff --git a/graph/graph.py b/graph/graph.py index c600773412..03af12cbbd 100644 --- a/graph/graph.py +++ b/graph/graph.py @@ -1,3 +1,17 @@ +# Copyright 2014 matrix.org +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# 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. + import sqlite3 import pydot diff --git a/scripts/copyrighter.pl b/scripts/copyrighter.pl new file mode 100755 index 0000000000..e476c9cc85 --- /dev/null +++ b/scripts/copyrighter.pl @@ -0,0 +1,33 @@ +#!/usr/bin/perl -pi +# Copyright 2014 matrix.org +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# 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. + +$copyright = <