[Python-modules-commits] [python-gammu] 02/07: Imported Upstream version 2.3
Michal Cihar
nijel at moszumanska.debian.org
Wed Jun 3 13:46:06 UTC 2015
This is an automated email from the git hooks/post-receive script.
nijel pushed a commit to branch master
in repository python-gammu.
commit 9d88675232e96ba8a99af1529b90349a82534601
Author: Michal Čihař <michal at cihar.com>
Date: Wed Jun 3 14:52:41 2015 +0200
Imported Upstream version 2.3
---
COPYING | 37 ++++++++++-----------
NEWS.rst | 12 +++++++
PKG-INFO | 74 ++++++++++++++++++++++++++++++++++++-----
README.rst | 48 +++++++++++++++++++++++++-
examples/__init__.py | 21 ++++++++++++
examples/addcontacts.py | 21 ++++++++++++
examples/addfile.py | 21 ++++++++++++
examples/backup_convertor.py | 21 ++++++++++++
examples/batteryinfo.py | 21 ++++++++++++
examples/debugging.py | 21 ++++++++++++
examples/dialvoice.py | 21 ++++++++++++
examples/doc-exceptions.py | 21 ++++++++++++
examples/dummy_phone.py | 20 ++++++-----
examples/filesystem_test.py | 58 +++++++++++++++++++++-----------
examples/getallcalendar.py | 23 ++++++++++++-
examples/getallmemory.py | 21 ++++++++++++
examples/getallmemory_nonext.py | 21 ++++++++++++
examples/getallsms.py | 21 ++++++++++++
examples/getallsms_decode.py | 21 ++++++++++++
examples/getalltodo.py | 21 ++++++++++++
examples/getdiverts.py | 21 ++++++++++++
examples/incoming.py | 21 ++++++++++++
examples/listfilesystem.py | 32 ++++++++++++++----
examples/mass_sms.py | 23 ++++++++++++-
examples/pdu_decoder.py | 21 ++++++++++++
examples/read_sms_backup.py | 21 ++++++++++++
examples/savesmspercontact.py | 21 ++++++++++++
examples/sendlongsms.py | 23 ++++++++++++-
examples/sendsms.py | 25 +++++++++++++-
examples/service_numbers.py | 20 ++++++-----
examples/setdiverts.py | 21 ++++++++++++
examples/sms_replier.py | 21 ++++++++++++
examples/smsbackup.py | 21 ++++++++++++
examples/smsd_inject.py | 23 ++++++++++++-
examples/smsd_state.py | 23 ++++++++++++-
examples/vcs.py | 28 ++++++++++++++--
examples/worker.py | 21 ++++++------
gammu/__init__.py | 25 +++++++-------
gammu/data.py | 20 ++++++-----
gammu/exception.py | 20 ++++++-----
gammu/smsd.py | 20 ++++++-----
gammu/src/convertors/backup.c | 23 +++++++------
gammu/src/convertors/base.c | 23 +++++++------
gammu/src/convertors/bitmap.c | 23 +++++++------
gammu/src/convertors/calendar.c | 23 +++++++------
gammu/src/convertors/call.c | 23 +++++++------
gammu/src/convertors/diverts.c | 23 +++++++------
gammu/src/convertors/file.c | 23 +++++++------
gammu/src/convertors/memory.c | 23 +++++++------
gammu/src/convertors/misc.c | 23 +++++++------
gammu/src/convertors/ringtone.c | 23 +++++++------
gammu/src/convertors/sms.c | 23 +++++++------
gammu/src/convertors/string.c | 23 +++++++------
gammu/src/convertors/time.c | 23 +++++++------
gammu/src/convertors/todo.c | 23 +++++++------
gammu/src/convertors/wap.c | 23 +++++++------
gammu/src/data.c | 23 +++++++------
gammu/src/errors.c | 23 +++++++------
gammu/src/gammu.c | 23 +++++++------
gammu/src/misc.c | 23 +++++++------
gammu/src/smsd.c | 24 +++++++------
gammu/worker.py | 20 ++++++-----
include/convertors.h | 23 +++++++------
include/data.h | 23 +++++++------
include/errors.h | 23 +++++++------
include/misc.h | 23 +++++++------
python_gammu.egg-info/PKG-INFO | 74 ++++++++++++++++++++++++++++++++++++-----
setup.py | 49 +++++++++++++++++----------
test/__init__.py | 21 ++++++++++++
test/test_backup.py | 20 ++++++-----
test/test_config.py | 23 +++++++------
test/test_data.py | 20 ++++++-----
test/test_dummy.py | 20 ++++++-----
test/test_errors.py | 20 ++++++-----
test/test_sms.py | 20 ++++++-----
test/test_smsd.py | 20 ++++++-----
test/test_worker.py | 20 ++++++-----
77 files changed, 1392 insertions(+), 504 deletions(-)
diff --git a/COPYING b/COPYING
index 7a8e8ab..d159169 100644
--- a/COPYING
+++ b/COPYING
@@ -1,12 +1,12 @@
- GNU GENERAL PUBLIC LICENSE
- Version 2, June 1991
+ GNU GENERAL PUBLIC LICENSE
+ Version 2, June 1991
- Copyright (C) 1989, 1991 Free Software Foundation, Inc.
- 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
- Preamble
+ Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
@@ -15,7 +15,7 @@ software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
-the GNU Library General Public License instead.) You can apply it to
+the GNU Lesser General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
@@ -55,8 +55,8 @@ patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
-
- GNU GENERAL PUBLIC LICENSE
+
+ GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
@@ -110,7 +110,7 @@ above, provided that you also meet all of these conditions:
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
-
+
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
@@ -168,7 +168,7 @@ access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
-
+
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
@@ -225,7 +225,7 @@ impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
-
+
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
@@ -255,7 +255,7 @@ make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
- NO WARRANTY
+ NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
@@ -277,9 +277,9 @@ YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
- END OF TERMS AND CONDITIONS
-
- How to Apply These Terms to Your New Programs
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
@@ -303,10 +303,9 @@ the "copyright" line and a pointer to where the full notice is found.
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 this program; if not, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
-
+ You should have received a copy of the GNU General Public License along
+ with this program; if not, write to the Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Also add information on how to contact you by electronic and paper mail.
diff --git a/NEWS.rst b/NEWS.rst
index 41e4b8f..3356917 100644
--- a/NEWS.rst
+++ b/NEWS.rst
@@ -1,3 +1,15 @@
+2.3
+===
+
+* License changed tp GPL version 2 or later.
+* Documentation improvements.
+
+2.2
+===
+
+* Documentation improvements.
+* Code cleanups.
+
2.1
===
diff --git a/PKG-INFO b/PKG-INFO
index aa14458..82df1e4 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,12 +1,12 @@
Metadata-Version: 1.1
Name: python-gammu
-Version: 2.1
+Version: 2.3
Summary: Gammu bindings
Home-page: http://wammu.eu/python-gammu/
Author: Michal Čihař
Author-email: michal at cihar.com
-License: GPLv2
-Download-URL: http://wammu.eu/download/gammu/
+License: GPLv2+
+Download-URL: http://wammu.eu/download/python-gammu/source/
Description: python-gammu
============
@@ -31,6 +31,18 @@ Description: python-gammu
.. image:: https://scan.coverity.com/projects/4837/badge.svg
:target: https://scan.coverity.com/projects/4837
+ .. image:: https://img.shields.io/gratipay/Gammu.svg
+ :alt: Gratipay
+ :target: https://gratipay.com/Gammu/
+
+ .. image:: https://www.bountysource.com/badge/team?team_id=23177&style=bounties_received
+ :alt: Bountysource
+ :target: https://www.bountysource.com/teams/gammu/issues?utm_source=Gammu&utm_medium=shield&utm_campaign=bounties_received
+
+ .. image:: https://img.shields.io/pypi/dm/python-gammu.svg
+ :alt: PyPI
+ :target: https://pypi.python.org/pypi/python-gammu/
+
Python bindings for Gammu library.
Homepage
@@ -41,7 +53,41 @@ Description: python-gammu
License
=======
- GNU GPL version 2.
+ Copyright (C) 2003 - 2015 Michal Čihař
+
+ This program 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 2 of the License, or
+ (at your option) any later version.
+
+ This program 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 this program; if not, write to the Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+ Installing
+ ==========
+
+ You can install in a usual way for Python modules using distutils, so use
+ ``setup.py`` which is placed in the top level directory::
+
+ ./setup.py build
+ sudo ./setup.py install
+
+ You can also install it using pip installer::
+
+ pip install python-gammu
+
+ Requirements
+ ============
+
+ To compile python-gammu, you need Gammu development files (usually shipped as
+ ``libgammu-dev`` or ``gammu-devel`` in Linux distributions) and pkg-config,
+ which is used to discover location of dependencies.
Documentation
=============
@@ -65,12 +111,22 @@ Platform: Linux
Platform: Mac OSX
Platform: Windows XP/2000/NT
Platform: Windows 95/98/ME
-Classifier: Development Status :: 5 - Production/Stable
-Classifier: License :: OSI Approved :: GNU General Public License (GPL)
-Classifier: Operating System :: Microsoft :: Windows :: Windows 95/98/2000
-Classifier: Operating System :: Microsoft :: Windows :: Windows NT/2000
+Classifier: Development Status :: 6 - Mature
+Classifier: Intended Audience :: Developers
+Classifier: Intended Audience :: Telecommunications Industry
+Classifier: License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)
+Classifier: Operating System :: MacOS
+Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX
Classifier: Operating System :: Unix
-Classifier: Programming Language :: Python
Classifier: Programming Language :: C
+Classifier: Programming Language :: Python
+Classifier: Programming Language :: Python :: 2.6
+Classifier: Programming Language :: Python :: 2.7
+Classifier: Programming Language :: Python :: 3
+Classifier: Programming Language :: Python :: 3.2
+Classifier: Programming Language :: Python :: 3.3
+Classifier: Programming Language :: Python :: 3.4
Classifier: Topic :: Communications :: Telephony
+Classifier: Topic :: Software Development :: Libraries :: Python Modules
+Classifier: Topic :: System :: Hardware
diff --git a/README.rst b/README.rst
index 14d3f6d..3b574ee 100644
--- a/README.rst
+++ b/README.rst
@@ -22,6 +22,18 @@ python-gammu
.. image:: https://scan.coverity.com/projects/4837/badge.svg
:target: https://scan.coverity.com/projects/4837
+.. image:: https://img.shields.io/gratipay/Gammu.svg
+ :alt: Gratipay
+ :target: https://gratipay.com/Gammu/
+
+.. image:: https://www.bountysource.com/badge/team?team_id=23177&style=bounties_received
+ :alt: Bountysource
+ :target: https://www.bountysource.com/teams/gammu/issues?utm_source=Gammu&utm_medium=shield&utm_campaign=bounties_received
+
+.. image:: https://img.shields.io/pypi/dm/python-gammu.svg
+ :alt: PyPI
+ :target: https://pypi.python.org/pypi/python-gammu/
+
Python bindings for Gammu library.
Homepage
@@ -32,7 +44,41 @@ Homepage
License
=======
-GNU GPL version 2.
+Copyright (C) 2003 - 2015 Michal Čihař
+
+This program 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 2 of the License, or
+(at your option) any later version.
+
+This program 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 this program; if not, write to the Free Software Foundation, Inc.,
+51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+Installing
+==========
+
+You can install in a usual way for Python modules using distutils, so use
+``setup.py`` which is placed in the top level directory::
+
+ ./setup.py build
+ sudo ./setup.py install
+
+You can also install it using pip installer::
+
+ pip install python-gammu
+
+Requirements
+============
+
+To compile python-gammu, you need Gammu development files (usually shipped as
+``libgammu-dev`` or ``gammu-devel`` in Linux distributions) and pkg-config,
+which is used to discover location of dependencies.
Documentation
=============
diff --git a/examples/__init__.py b/examples/__init__.py
index e69de29..6b6aa2f 100644
--- a/examples/__init__.py
+++ b/examples/__init__.py
@@ -0,0 +1,21 @@
+# -*- coding: UTF-8 -*-
+# vim: expandtab sw=4 ts=4 sts=4:
+#
+# Copyright © 2003 - 2015 Michal Čihař <michal at cihar.com>
+#
+# This file is part of python-gammu <http://wammu.eu/python-gammu/>
+#
+# This program 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 2 of the License, or
+# (at your option) any later version.
+#
+# This program 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 this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+#
diff --git a/examples/addcontacts.py b/examples/addcontacts.py
index 2733e4a..98586ec 100755
--- a/examples/addcontacts.py
+++ b/examples/addcontacts.py
@@ -1,4 +1,25 @@
#!/usr/bin/env python
+# -*- coding: UTF-8 -*-
+# vim: expandtab sw=4 ts=4 sts=4:
+#
+# Copyright © 2003 - 2015 Michal Čihař <michal at cihar.com>
+#
+# This file is part of python-gammu <http://wammu.eu/python-gammu/>
+#
+# This program 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 2 of the License, or
+# (at your option) any later version.
+#
+# This program 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 this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+#
from __future__ import print_function
import gammu
diff --git a/examples/addfile.py b/examples/addfile.py
index 0abad89..5944267 100755
--- a/examples/addfile.py
+++ b/examples/addfile.py
@@ -1,4 +1,25 @@
#!/usr/bin/env python
+# -*- coding: UTF-8 -*-
+# vim: expandtab sw=4 ts=4 sts=4:
+#
+# Copyright © 2003 - 2015 Michal Čihař <michal at cihar.com>
+#
+# This file is part of python-gammu <http://wammu.eu/python-gammu/>
+#
+# This program 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 2 of the License, or
+# (at your option) any later version.
+#
+# This program 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 this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+#
from __future__ import print_function
import gammu
diff --git a/examples/backup_convertor.py b/examples/backup_convertor.py
index b5c353f..9f34bdd 100755
--- a/examples/backup_convertor.py
+++ b/examples/backup_convertor.py
@@ -1,4 +1,25 @@
#!/usr/bin/env python
+# -*- coding: UTF-8 -*-
+# vim: expandtab sw=4 ts=4 sts=4:
+#
+# Copyright © 2003 - 2015 Michal Čihař <michal at cihar.com>
+#
+# This file is part of python-gammu <http://wammu.eu/python-gammu/>
+#
+# This program 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 2 of the License, or
+# (at your option) any later version.
+#
+# This program 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 this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+#
from __future__ import print_function
import gammu
diff --git a/examples/batteryinfo.py b/examples/batteryinfo.py
index 68ce7dd..6ffb8e7 100755
--- a/examples/batteryinfo.py
+++ b/examples/batteryinfo.py
@@ -1,4 +1,25 @@
#!/usr/bin/env python
+# -*- coding: UTF-8 -*-
+# vim: expandtab sw=4 ts=4 sts=4:
+#
+# Copyright © 2003 - 2015 Michal Čihař <michal at cihar.com>
+#
+# This file is part of python-gammu <http://wammu.eu/python-gammu/>
+#
+# This program 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 2 of the License, or
+# (at your option) any later version.
+#
+# This program 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 this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+#
from __future__ import print_function
import gammu
diff --git a/examples/debugging.py b/examples/debugging.py
index c584e67..8e3bc00 100755
--- a/examples/debugging.py
+++ b/examples/debugging.py
@@ -1,4 +1,25 @@
#!/usr/bin/env python
+# -*- coding: UTF-8 -*-
+# vim: expandtab sw=4 ts=4 sts=4:
+#
+# Copyright © 2003 - 2015 Michal Čihař <michal at cihar.com>
+#
+# This file is part of python-gammu <http://wammu.eu/python-gammu/>
+#
+# This program 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 2 of the License, or
+# (at your option) any later version.
+#
+# This program 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 this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+#
from __future__ import print_function
import gammu
diff --git a/examples/dialvoice.py b/examples/dialvoice.py
index 8a125f0..eebf808 100755
--- a/examples/dialvoice.py
+++ b/examples/dialvoice.py
@@ -1,4 +1,25 @@
#!/usr/bin/env python
+# -*- coding: UTF-8 -*-
+# vim: expandtab sw=4 ts=4 sts=4:
+#
+# Copyright © 2003 - 2015 Michal Čihař <michal at cihar.com>
+#
+# This file is part of python-gammu <http://wammu.eu/python-gammu/>
+#
+# This program 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 2 of the License, or
+# (at your option) any later version.
+#
+# This program 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 this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+#
from __future__ import print_function
import gammu
diff --git a/examples/doc-exceptions.py b/examples/doc-exceptions.py
index 1e4f152..04704be 100755
--- a/examples/doc-exceptions.py
+++ b/examples/doc-exceptions.py
@@ -1,4 +1,25 @@
#!/usr/bin/env python
+# -*- coding: UTF-8 -*-
+# vim: expandtab sw=4 ts=4 sts=4:
+#
+# Copyright © 2003 - 2015 Michal Čihař <michal at cihar.com>
+#
+# This file is part of python-gammu <http://wammu.eu/python-gammu/>
+#
+# This program 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 2 of the License, or
+# (at your option) any later version.
+#
+# This program 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 this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+#
from __future__ import print_function
import gammu.exception
diff --git a/examples/dummy_phone.py b/examples/dummy_phone.py
index 93060e7..3f45239 100755
--- a/examples/dummy_phone.py
+++ b/examples/dummy_phone.py
@@ -4,19 +4,21 @@
#
# Copyright © 2003 - 2015 Michal Čihař <michal at cihar.com>
#
-# This file is part of Gammu <http://wammu.eu/>
+# This file is part of python-gammu <http://wammu.eu/python-gammu/>
#
# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License version 2 as
-# published by the Free Software Foundation.
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
#
-# This program 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.
+# This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
+# You should have received a copy of the GNU General Public License along
+# with this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
'''
python-gammu - Test script to test several Gammu operations
diff --git a/examples/filesystem_test.py b/examples/filesystem_test.py
index 9a5aa1b..e1e3e9b 100755
--- a/examples/filesystem_test.py
+++ b/examples/filesystem_test.py
@@ -1,28 +1,48 @@
#!/usr/bin/env python
+# -*- coding: UTF-8 -*-
+# vim: expandtab sw=4 ts=4 sts=4:
#
-# This file should provide me with a test frame for the filesystem
-# functions. It can't be run automatically, but you should be able
-# to decide, wheather the output looks sensible
+# Copyright © 2003 - 2015 Matthias Blaesing <matthias.blaesing at rwth-aachen.de>
#
-# BEWARE - the test WILL TOUCH AND WRITE FILESYSTEM!!
+# This file is part of python-gammu <http://wammu.eu/python-gammu/>
#
-# Matthias Blaesing <matthias.blaesing at rwth-aachen.de>
+# This program 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 2 of the License, or
+# (at your option) any later version.
#
-# I asume you call the script from the directory were it lays and
-# have the grafic there and you have write permission there and that
-# there is a file called cgi.jpg to be used as test file
+# This program 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.
#
-# READY:
-# - DeleteFile
-# - AddFilePart
-# - GetFilePart
-# - GetNextRootFolder
-# - GetNextFileFolder
-# - GetFolderListing
-# - SetFileAttributes
-# - DeleteFolder
-# - GetFileSystemStatus
-# - AddFolder
+# You should have received a copy of the GNU General Public License along
+# with this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+#
+"""
+This file should provide me with a test frame for the filesystem
+functions. It can't be run automatically, but you should be able
+to decide, wheather the output looks sensible
+
+BEWARE - the test WILL TOUCH AND WRITE FILESYSTEM!!
+
+I asume you call the script from the directory were it lays and
+have the grafic there and you have write permission there and that
+there is a file called cgi.jpg to be used as test file
+
+READY:
+- DeleteFile
+- AddFilePart
+- GetFilePart
+- GetNextRootFolder
+- GetNextFileFolder
+- GetFolderListing
+- SetFileAttributes
+- DeleteFolder
+- GetFileSystemStatus
+- AddFolder
+"""
from __future__ import print_function
import gammu
diff --git a/examples/getallcalendar.py b/examples/getallcalendar.py
index 40e882c..80445aa 100755
--- a/examples/getallcalendar.py
+++ b/examples/getallcalendar.py
@@ -1,5 +1,26 @@
#!/usr/bin/env python
-# Example for reading calendar from phone
+# -*- coding: UTF-8 -*-
+# vim: expandtab sw=4 ts=4 sts=4:
+#
+# Copyright © 2003 - 2015 Michal Čihař <michal at cihar.com>
+#
+# This file is part of python-gammu <http://wammu.eu/python-gammu/>
+#
+# This program 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 2 of the License, or
+# (at your option) any later version.
+#
+# This program 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 this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+#
+"""Example for reading calendar from phone"""
from __future__ import print_function
import gammu
diff --git a/examples/getallmemory.py b/examples/getallmemory.py
index 21dbb80..0ba6417 100755
--- a/examples/getallmemory.py
+++ b/examples/getallmemory.py
@@ -1,4 +1,25 @@
#!/usr/bin/env python
+# -*- coding: UTF-8 -*-
+# vim: expandtab sw=4 ts=4 sts=4:
+#
+# Copyright © 2003 - 2015 Michal Čihař <michal at cihar.com>
+#
+# This file is part of python-gammu <http://wammu.eu/python-gammu/>
+#
+# This program 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 2 of the License, or
+# (at your option) any later version.
+#
+# This program 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 this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+#
from __future__ import print_function
import gammu
diff --git a/examples/getallmemory_nonext.py b/examples/getallmemory_nonext.py
index fcc58cb..3ce4b6c 100755
--- a/examples/getallmemory_nonext.py
+++ b/examples/getallmemory_nonext.py
@@ -1,4 +1,25 @@
#!/usr/bin/env python
+# -*- coding: UTF-8 -*-
+# vim: expandtab sw=4 ts=4 sts=4:
+#
+# Copyright © 2003 - 2015 Michal Čihař <michal at cihar.com>
+#
+# This file is part of python-gammu <http://wammu.eu/python-gammu/>
+#
+# This program 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 2 of the License, or
+# (at your option) any later version.
+#
+# This program 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 this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+#
from __future__ import print_function
import gammu
diff --git a/examples/getallsms.py b/examples/getallsms.py
index 629ef4d..84df409 100755
--- a/examples/getallsms.py
+++ b/examples/getallsms.py
@@ -1,4 +1,25 @@
#!/usr/bin/env python
+# -*- coding: UTF-8 -*-
+# vim: expandtab sw=4 ts=4 sts=4:
+#
+# Copyright © 2003 - 2015 Michal Čihař <michal at cihar.com>
+#
+# This file is part of python-gammu <http://wammu.eu/python-gammu/>
+#
+# This program 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 2 of the License, or
+# (at your option) any later version.
+#
+# This program 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 this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+#
from __future__ import print_function
import gammu
diff --git a/examples/getallsms_decode.py b/examples/getallsms_decode.py
index b051fe5..d1d7d6e 100755
--- a/examples/getallsms_decode.py
+++ b/examples/getallsms_decode.py
@@ -1,4 +1,25 @@
#!/usr/bin/env python
+# -*- coding: UTF-8 -*-
+# vim: expandtab sw=4 ts=4 sts=4:
+#
+# Copyright © 2003 - 2015 Michal Čihař <michal at cihar.com>
+#
+# This file is part of python-gammu <http://wammu.eu/python-gammu/>
+#
+# This program 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 2 of the License, or
+# (at your option) any later version.
+#
+# This program 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 this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+#
from __future__ import print_function
import gammu
diff --git a/examples/getalltodo.py b/examples/getalltodo.py
index d9815b1..825ff17 100755
--- a/examples/getalltodo.py
+++ b/examples/getalltodo.py
@@ -1,4 +1,25 @@
#!/usr/bin/env python
+# -*- coding: UTF-8 -*-
+# vim: expandtab sw=4 ts=4 sts=4:
+#
+# Copyright © 2003 - 2015 Michal Čihař <michal at cihar.com>
+#
+# This file is part of python-gammu <http://wammu.eu/python-gammu/>
+#
+# This program 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 2 of the License, or
+# (at your option) any later version.
+#
+# This program 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 this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+#
from __future__ import print_function
import gammu
diff --git a/examples/getdiverts.py b/examples/getdiverts.py
index 69c59e2..f33cf32 100755
--- a/examples/getdiverts.py
+++ b/examples/getdiverts.py
@@ -1,4 +1,25 @@
#!/usr/bin/env python
+# -*- coding: UTF-8 -*-
+# vim: expandtab sw=4 ts=4 sts=4:
+#
+# Copyright © 2003 - 2015 Michal Čihař <michal at cihar.com>
+#
+# This file is part of python-gammu <http://wammu.eu/python-gammu/>
+#
+# This program 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 2 of the License, or
+# (at your option) any later version.
+#
+# This program 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 this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+#
from __future__ import print_function
import gammu
diff --git a/examples/incoming.py b/examples/incoming.py
index 0403213..f36b2cb 100755
--- a/examples/incoming.py
+++ b/examples/incoming.py
@@ -1,4 +1,25 @@
#!/usr/bin/env python
+# -*- coding: UTF-8 -*-
+# vim: expandtab sw=4 ts=4 sts=4:
+#
+# Copyright © 2003 - 2015 Michal Čihař <michal at cihar.com>
+#
+# This file is part of python-gammu <http://wammu.eu/python-gammu/>
+#
+# This program 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 2 of the License, or
+# (at your option) any later version.
+#
+# This program 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 this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+#
from __future__ import print_function
import gammu
diff --git a/examples/listfilesystem.py b/examples/listfilesystem.py
index a092da3..b2d6b67 100755
--- a/examples/listfilesystem.py
+++ b/examples/listfilesystem.py
@@ -1,15 +1,35 @@
#!/usr/bin/env python
+# -*- coding: UTF-8 -*-
+# vim: expandtab sw=4 ts=4 sts=4:
#
-# Example for usage of GetNextFileFolder, which is oriented at
+# Copyright © 2003 - 2015 Matthias Blaesing <matthias.blaesing at rwth-aachen.de>
#
-# gammu --getfilesystem
+# This file is part of python-gammu <http://wammu.eu/python-gammu/>
#
-# Without argument you get a hierarchical list, provide flat as
-# argument and get somethink like (not exactly!)
+# This program 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 2 of the License, or
+# (at your option) any later version.
#
-# gammu --getfilesystem -flatall
+# This program 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.
#
-# Matthias Blaesing <matthias.blaesing at rwth-aachen.de>
... 2033 lines suppressed ...
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-gammu.git
More information about the Python-modules-commits
mailing list