From 7729d61d277655f3200f3a35f0865c8d91f67246 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Sat, 11 Feb 2017 16:06:12 -0300 Subject: [PATCH] updated file headers and copyright year --- Spectrum2/backend.py | 23 +++++++++++++++++++++++ Spectrum2/iochannel.py | 23 +++++++++++++++++++++++ bot.py | 8 ++++---- buddy.py | 8 ++++---- config.py | 23 +++++++++++++++++++++++ deferred.py | 24 ++++++++++++++++++++++++ group.py | 9 ++++----- registersession.py | 23 +++++++++++++++++++++++ session.py | 8 ++++---- threadutils.py | 23 +++++++++++++++++++++++ transwhat.py | 8 +++----- utils.py | 9 ++++----- whatsappbackend.py | 8 +++----- yowsupwrapper.py | 23 +++++++++++++++++++++++ 14 files changed, 188 insertions(+), 32 deletions(-) diff --git a/Spectrum2/backend.py b/Spectrum2/backend.py index 94d000f..388e2ea 100644 --- a/Spectrum2/backend.py +++ b/Spectrum2/backend.py @@ -1,3 +1,26 @@ +__author__ = "Steffen Vogel" +__copyright__ = "Copyright 2015-2017, Steffen Vogel" +__license__ = "GPLv3" +__maintainer__ = "Steffen Vogel" +__email__ = "post@steffenvogel.de" + +""" + This file is part of transWhat + + transWhat is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + any later version. + + transwhat is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with transWhat. If not, see . +""" + # use unicode encoding for all literals by default (for python2.x) from __future__ import unicode_literals diff --git a/Spectrum2/iochannel.py b/Spectrum2/iochannel.py index 9c558d4..a4e6010 100644 --- a/Spectrum2/iochannel.py +++ b/Spectrum2/iochannel.py @@ -1,3 +1,26 @@ +__author__ = "Steffen Vogel" +__copyright__ = "Copyright 2015-2017, Steffen Vogel" +__license__ = "GPLv3" +__maintainer__ = "Steffen Vogel" +__email__ = "post@steffenvogel.de" + +""" + This file is part of transWhat + + transWhat is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + any later version. + + transwhat is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with transWhat. If not, see . +""" + # use unicode encoding for all literals by default (for python2.x) from __future__ import unicode_literals diff --git a/bot.py b/bot.py index e5ba617..9a28ea0 100644 --- a/bot.py +++ b/bot.py @@ -1,8 +1,5 @@ -# use unicode encoding for all literals by default (for python2.x) -from __future__ import unicode_literals - __author__ = "Steffen Vogel" -__copyright__ = "Copyright 2015, Steffen Vogel" +__copyright__ = "Copyright 2015-2017, Steffen Vogel" __license__ = "GPLv3" __maintainer__ = "Steffen Vogel" __email__ = "post@steffenvogel.de" @@ -24,6 +21,9 @@ __email__ = "post@steffenvogel.de" along with transWhat. If not, see . """ +# use unicode encoding for all literals by default (for python2.x) +from __future__ import unicode_literals + import threading import inspect import re diff --git a/buddy.py b/buddy.py index 2537f67..18ddfd0 100644 --- a/buddy.py +++ b/buddy.py @@ -1,8 +1,5 @@ -# use unicode encoding for all literals by default (for python2.x) -from __future__ import unicode_literals - __author__ = "Steffen Vogel" -__copyright__ = "Copyright 2015, Steffen Vogel" +__copyright__ = "Copyright 2015-2017, Steffen Vogel" __license__ = "GPLv3" __maintainer__ = "Steffen Vogel" __email__ = "post@steffenvogel.de" @@ -24,6 +21,9 @@ __email__ = "post@steffenvogel.de" along with transWhat. If not, see . """ +# use unicode encoding for all literals by default (for python2.x) +from __future__ import unicode_literals + from Spectrum2 import protocol_pb2 import logging diff --git a/config.py b/config.py index 09dc7bb..8c0ab85 100644 --- a/config.py +++ b/config.py @@ -1,3 +1,26 @@ +__author__ = "Steffen Vogel" +__copyright__ = "Copyright 2015-2017, Steffen Vogel" +__license__ = "GPLv3" +__maintainer__ = "Steffen Vogel" +__email__ = "post@steffenvogel.de" + +""" + This file is part of transWhat + + transWhat is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + any later version. + + transwhat is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with transWhat. If not, see . +""" + # I'm guessing this is the format of the spectrum config file in BNF # ::= * # ::= * * | diff --git a/deferred.py b/deferred.py index 27049cd..5fe46c2 100644 --- a/deferred.py +++ b/deferred.py @@ -1,5 +1,29 @@ +__author__ = "Steffen Vogel" +__copyright__ = "Copyright 2015-2017, Steffen Vogel" +__license__ = "GPLv3" +__maintainer__ = "Steffen Vogel" +__email__ = "post@steffenvogel.de" + +""" + This file is part of transWhat + + transWhat is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + any later version. + + transwhat is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with transWhat. If not, see . +""" + # use unicode encoding for all literals by default (for python2.x) from __future__ import unicode_literals + from functools import partial class Deferred(object): diff --git a/group.py b/group.py index 0d255a9..beebf84 100644 --- a/group.py +++ b/group.py @@ -1,9 +1,5 @@ -# use unicode encoding for all literals by default (for python2.x) -from __future__ import unicode_literals - - __author__ = "Steffen Vogel" -__copyright__ = "Copyright 2015, Steffen Vogel" +__copyright__ = "Copyright 2015-2017, Steffen Vogel" __license__ = "GPLv3" __maintainer__ = "Steffen Vogel" __email__ = "post@steffenvogel.de" @@ -25,6 +21,9 @@ __email__ = "post@steffenvogel.de" along with transWhat. If not, see . """ +# use unicode encoding for all literals by default (for python2.x) +from __future__ import unicode_literals + from Spectrum2 import protocol_pb2 class Group(): diff --git a/registersession.py b/registersession.py index 7a939e2..c276d7a 100644 --- a/registersession.py +++ b/registersession.py @@ -1,3 +1,26 @@ +__author__ = "Steffen Vogel" +__copyright__ = "Copyright 2015-2017, Steffen Vogel" +__license__ = "GPLv3" +__maintainer__ = "Steffen Vogel" +__email__ = "post@steffenvogel.de" + +""" + This file is part of transWhat + + transWhat is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + any later version. + + transwhat is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with transWhat. If not, see . +""" + # use unicode encoding for all literals by default (for python2.x) from __future__ import unicode_literals from Spectrum2 import protocol_pb2 diff --git a/session.py b/session.py index 0740cef..c76190c 100644 --- a/session.py +++ b/session.py @@ -1,8 +1,5 @@ -# use unicode encoding for all literals by default (for python2.x) -from __future__ import unicode_literals - __author__ = "Steffen Vogel" -__copyright__ = "Copyright 2015, Steffen Vogel" +__copyright__ = "Copyright 2015-2017, Steffen Vogel" __license__ = "GPLv3" __maintainer__ = "Steffen Vogel" __email__ = "post@steffenvogel.de" @@ -24,6 +21,9 @@ __email__ = "post@steffenvogel.de" along with transWhat. If not, see . """ +# use unicode encoding for all literals by default (for python2.x) +from __future__ import unicode_literals + import utils import logging import urllib diff --git a/threadutils.py b/threadutils.py index cee0929..ddb8ebe 100644 --- a/threadutils.py +++ b/threadutils.py @@ -1,3 +1,26 @@ +__author__ = "Steffen Vogel" +__copyright__ = "Copyright 2015-2017, Steffen Vogel" +__license__ = "GPLv3" +__maintainer__ = "Steffen Vogel" +__email__ = "post@steffenvogel.de" + +""" + This file is part of transWhat + + transWhat is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + any later version. + + transwhat is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with transWhat. If not, see . +""" + # use unicode encoding for all literals by default (for python2.x) from __future__ import unicode_literals diff --git a/transwhat.py b/transwhat.py index 929727d..971f813 100755 --- a/transwhat.py +++ b/transwhat.py @@ -1,11 +1,7 @@ #!/usr/bin/python -# use unicode encoding for all literals by default (for python2.x) -from __future__ import unicode_literals - - __author__ = "Steffen Vogel" -__copyright__ = "Copyright 2015, Steffen Vogel" +__copyright__ = "Copyright 2015-2017, Steffen Vogel" __license__ = "GPLv3" __maintainer__ = "Steffen Vogel" __email__ = "post@steffenvogel.de" @@ -27,6 +23,8 @@ __email__ = "post@steffenvogel.de" along with transWhat. If not, see . """ +# use unicode encoding for all literals by default (for python2.x) +from __future__ import unicode_literals import argparse import traceback diff --git a/utils.py b/utils.py index 795e48a..c693f37 100644 --- a/utils.py +++ b/utils.py @@ -1,9 +1,5 @@ -# use unicode encoding for all literals by default (for python2.x) -from __future__ import unicode_literals - - __author__ = "Steffen Vogel" -__copyright__ = "Copyright 2015, Steffen Vogel" +__copyright__ = "Copyright 2015-2017, Steffen Vogel" __license__ = "GPLv3" __maintainer__ = "Steffen Vogel" __email__ = "post@steffenvogel.de" @@ -25,6 +21,9 @@ __email__ = "post@steffenvogel.de" along with transWhat. If not, see . """ +# use unicode encoding for all literals by default (for python2.x) +from __future__ import unicode_literals + import e4u import base64 import hashlib diff --git a/whatsappbackend.py b/whatsappbackend.py index 6230d94..90409da 100644 --- a/whatsappbackend.py +++ b/whatsappbackend.py @@ -1,9 +1,5 @@ -# use unicode encoding for all literals by default (for python2.x) -from __future__ import unicode_literals - - __author__ = "Steffen Vogel" -__copyright__ = "Copyright 2015, Steffen Vogel" +__copyright__ = "Copyright 2015-2017, Steffen Vogel" __license__ = "GPLv3" __maintainer__ = "Steffen Vogel" __email__ = "post@steffenvogel.de" @@ -25,6 +21,8 @@ __email__ = "post@steffenvogel.de" along with transWhat. If not, see . """ +# use unicode encoding for all literals by default (for python2.x) +from __future__ import unicode_literals from Spectrum2.backend import SpectrumBackend from Spectrum2 import protocol_pb2 diff --git a/yowsupwrapper.py b/yowsupwrapper.py index 830211a..bebbb87 100644 --- a/yowsupwrapper.py +++ b/yowsupwrapper.py @@ -1,3 +1,26 @@ +__author__ = "Steffen Vogel" +__copyright__ = "Copyright 2015-2017, Steffen Vogel" +__license__ = "GPLv3" +__maintainer__ = "Steffen Vogel" +__email__ = "post@steffenvogel.de" + +""" + This file is part of transWhat + + transWhat is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + any later version. + + transwhat is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with transWhat. If not, see . +""" + # use unicode encoding for all literals by default (for python2.x) from __future__ import unicode_literals