# HG changeset patch # User Thierry Florac # Date 1270337872 -7200 # Node ID d9a45c366c6cb8c816ba7c51e25c13d90be10a66 # Parent ad9c8c79b9d055387f9d41397e5726c169a1cbca Update licence header in .py files diff -r ad9c8c79b9d0 -r d9a45c366c6c .settings/org.eclipse.core.resources.prefs --- a/.settings/org.eclipse.core.resources.prefs Sun Apr 04 01:28:51 2010 +0200 +++ b/.settings/org.eclipse.core.resources.prefs Sun Apr 04 01:37:52 2010 +0200 @@ -1,15 +1,19 @@ -#Wed Mar 17 00:02:25 CET 2010 +#Sun Apr 04 01:36:34 CEST 2010 eclipse.preferences.version=1 encoding//ztfy/utils/__init__.py=utf-8 encoding//ztfy/utils/catalog/__init__.py=utf-8 encoding//ztfy/utils/catalog/index.py=utf-8 +encoding//ztfy/utils/date.py=utf-8 encoding//ztfy/utils/file.py=utf-8 encoding//ztfy/utils/html.py=utf-8 encoding//ztfy/utils/protocol/xmlrpc.py=utf-8 encoding//ztfy/utils/request.py=utf-8 +encoding//ztfy/utils/security.py=utf-8 encoding//ztfy/utils/tal/html.py=utf-8 encoding//ztfy/utils/tal/interfaces.py=utf-8 encoding//ztfy/utils/tal/text.py=utf-8 +encoding//ztfy/utils/tests/test_utilsdocs.py=utf-8 +encoding//ztfy/utils/tests/test_utilsdocstrings.py=utf-8 encoding//ztfy/utils/text.py=utf-8 encoding//ztfy/utils/timezone/__init__.py=utf-8 encoding//ztfy/utils/timezone/interfaces.py=utf-8 diff -r ad9c8c79b9d0 -r d9a45c366c6c setup.py --- a/setup.py Sun Apr 04 01:28:51 2010 +0200 +++ b/setup.py Sun Apr 04 01:37:52 2010 +0200 @@ -1,19 +1,18 @@ -# -*- coding: utf-8 -*- -# Copyright (c) 2009 'Thierry Florac' - -# 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. +### -*- coding: utf-8 -*- #################################################### +############################################################################## +# +# Copyright (c) 2008-2010 Thierry Florac +# All Rights Reserved. +# +# This software is subject to the provisions of the Zope Public License, +# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. +# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED +# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS +# FOR A PARTICULAR PURPOSE. +# +############################################################################## -# 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; see the file COPYING. If not, write to the -# Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. """ This module contains ztfy.utils package """ diff -r ad9c8c79b9d0 -r d9a45c366c6c ztfy/utils/date.py --- a/ztfy/utils/date.py Sun Apr 04 01:28:51 2010 +0200 +++ b/ztfy/utils/date.py Sun Apr 04 01:37:52 2010 +0200 @@ -1,3 +1,4 @@ +### -*- coding: utf-8 -*- #################################################### ############################################################################## # # Copyright (c) 2008 Thierry Florac @@ -39,7 +40,7 @@ """ if value is not None: value = gmtime(value) - return unicode(value.isoformat('T'),'ascii') + return unicode(value.isoformat('T'), 'ascii') return None diff -r ad9c8c79b9d0 -r d9a45c366c6c ztfy/utils/security.py --- a/ztfy/utils/security.py Sun Apr 04 01:28:51 2010 +0200 +++ b/ztfy/utils/security.py Sun Apr 04 01:37:52 2010 +0200 @@ -1,3 +1,4 @@ +### -*- coding: utf-8 -*- #################################################### ############################################################################## # # Copyright (c) 2008 Thierry Florac diff -r ad9c8c79b9d0 -r d9a45c366c6c ztfy/utils/tests/test_utilsdocs.py --- a/ztfy/utils/tests/test_utilsdocs.py Sun Apr 04 01:28:51 2010 +0200 +++ b/ztfy/utils/tests/test_utilsdocs.py Sun Apr 04 01:37:52 2010 +0200 @@ -1,19 +1,18 @@ -# -*- coding: utf-8 -*- -# Copyright (c) 2008 Thierry Florac - -# 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. +### -*- coding: utf-8 -*- #################################################### +############################################################################## +# +# Copyright (c) 2008-2010 Thierry Florac +# All Rights Reserved. +# +# This software is subject to the provisions of the Zope Public License, +# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. +# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED +# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS +# FOR A PARTICULAR PURPOSE. +# +############################################################################## -# 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; see the file COPYING. If not, write to the -# Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. """ Generic Test case for ztfy.utils doctest """ @@ -48,8 +47,8 @@ os.listdir(doctest_dir) if doc.endswith('.txt')] for test in docs: - suite.append(doctest.DocFileSuite(test, optionflags=flags, - globs=globs, setUp=setUp, + suite.append(doctest.DocFileSuite(test, optionflags=flags, + globs=globs, setUp=setUp, tearDown=tearDown, module_relative=False)) diff -r ad9c8c79b9d0 -r d9a45c366c6c ztfy/utils/tests/test_utilsdocstrings.py --- a/ztfy/utils/tests/test_utilsdocstrings.py Sun Apr 04 01:28:51 2010 +0200 +++ b/ztfy/utils/tests/test_utilsdocstrings.py Sun Apr 04 01:37:52 2010 +0200 @@ -1,19 +1,18 @@ -# -*- coding: utf-8 -*- -# Copyright (c) 2008 Thierry Florac - -# 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. +### -*- coding: utf-8 -*- #################################################### +############################################################################## +# +# Copyright (c) 2008-2010 Thierry Florac +# All Rights Reserved. +# +# This software is subject to the provisions of the Zope Public License, +# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. +# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED +# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS +# FOR A PARTICULAR PURPOSE. +# +############################################################################## -# 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; see the file COPYING. If not, write to the -# Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. """ Generic Test case for ztfy.utils doc strings """