summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--__init__.py4
-rw-r--r--_exceptions.py16
-rw-r--r--_nodes_ast.py4
-rw-r--r--_nodes_compiler.py4
-rw-r--r--builder.py4
-rw-r--r--nodes.py4
-rw-r--r--nodes_as_string.py20
-rw-r--r--patchcomptransformer.py4
-rw-r--r--raw_building.py4
-rw-r--r--rebuilder.py20
-rw-r--r--scoped_nodes.py4
-rw-r--r--utils.py4
12 files changed, 65 insertions, 27 deletions
diff --git a/__init__.py b/__init__.py
index 214cfca8..b095893c 100644
--- a/__init__.py
+++ b/__init__.py
@@ -36,9 +36,9 @@ Main modules are:
:author: Sylvain Thenault
-:copyright: 2003-2007 LOGILAB S.A. (Paris, FRANCE)
+:copyright: 2003-2009 LOGILAB S.A. (Paris, FRANCE)
:contact: http://www.logilab.fr/ -- mailto:python-projects@logilab.org
-:copyright: 2003-2007 Sylvain Thenault
+:copyright: 2003-2009 Sylvain Thenault
:contact: mailto:thenault@gmail.com
"""
diff --git a/_exceptions.py b/_exceptions.py
index 009f10ba..722b9bce 100644
--- a/_exceptions.py
+++ b/_exceptions.py
@@ -13,33 +13,31 @@
"""this module contains exceptions used in the astng library
:author: Sylvain Thenault
-:copyright: 2003-2007 LOGILAB S.A. (Paris, FRANCE)
+:copyright: 2003-2009 LOGILAB S.A. (Paris, FRANCE)
:contact: http://www.logilab.fr/ -- mailto:python-projects@logilab.org
-:copyright: 2003-2007 Sylvain Thenault
+:copyright: 2003-2009 Sylvain Thenault
:contact: mailto:thenault@gmail.com
"""
__doctype__ = "restructuredtext en"
class ASTNGError(Exception):
- """base exception class for all astng related exceptions
- """
+ """base exception class for all astng related exceptions"""
class ASTNGBuildingException(ASTNGError):
- """exception class when we are not able to build an astng representation"""
+ """exception class when we are unable to build an astng representation"""
class ResolveError(ASTNGError):
"""base class of astng resolution/inference error"""
class NotFoundError(ResolveError):
- """raised when we are unabled to resolve a name"""
+ """raised when we are unable to resolve a name"""
class InferenceError(ResolveError):
- """raised when we are unabled to infer a node"""
+ """raised when we are unable to infer a node"""
class UnresolvableName(InferenceError):
- """raised when we are unabled to resolve a name"""
-
+ """raised when we are unable to resolve a name"""
class NoDefault(ASTNGError):
"""raised by function's `default_value` method when an argument has
diff --git a/_nodes_ast.py b/_nodes_ast.py
index 4cfa3941..c8e6db96 100644
--- a/_nodes_ast.py
+++ b/_nodes_ast.py
@@ -13,9 +13,9 @@
"""python 2.5 builtin _ast compatibility module
:author: Sylvain Thenault
-:copyright: 2008 LOGILAB S.A. (Paris, FRANCE)
+:copyright: 2008-2009 LOGILAB S.A. (Paris, FRANCE)
:contact: http://www.logilab.fr/ -- mailto:python-projects@logilab.org
-:copyright: 2008 Sylvain Thenault
+:copyright: 2008-2009 Sylvain Thenault
:contact: mailto:thenault@gmail.com
"""
diff --git a/_nodes_compiler.py b/_nodes_compiler.py
index 4cecd501..ca7bf97b 100644
--- a/_nodes_compiler.py
+++ b/_nodes_compiler.py
@@ -16,9 +16,9 @@
[1] http://docs.python.org/lib/module-compiler.ast.html
:author: Sylvain Thenault
-:copyright: 2003-2008 LOGILAB S.A. (Paris, FRANCE)
+:copyright: 2008-2009 LOGILAB S.A. (Paris, FRANCE)
:contact: http://www.logilab.fr/ -- mailto:python-projects@logilab.org
-:copyright: 2003-2008 Sylvain Thenault
+:copyright: 2008-2009 Sylvain Thenault
:contact: mailto:thenault@gmail.com
"""
from __future__ import generators
diff --git a/builder.py b/builder.py
index 8a069395..d8b7da38 100644
--- a/builder.py
+++ b/builder.py
@@ -19,9 +19,9 @@ at the same time.
:author: Sylvain Thenault
-:copyright: 2003-2008 LOGILAB S.A. (Paris, FRANCE)
+:copyright: 2003-2009 LOGILAB S.A. (Paris, FRANCE)
:contact: http://www.logilab.fr/ -- mailto:python-projects@logilab.org
-:copyright: 2003-2008 Sylvain Thenault
+:copyright: 2003-2009 Sylvain Thenault
:contact: mailto:thenault@gmail.com
"""
diff --git a/nodes.py b/nodes.py
index 68a3ac41..76735bb3 100644
--- a/nodes.py
+++ b/nodes.py
@@ -28,9 +28,9 @@ on From and Import :
.real_name(name),
:author: Sylvain Thenault
-:copyright: 2003-2008 LOGILAB S.A. (Paris, FRANCE)
+:copyright: 2003-2009 LOGILAB S.A. (Paris, FRANCE)
:contact: http://www.logilab.fr/ -- mailto:python-projects@logilab.org
-:copyright: 2003-2008 Sylvain Thenault
+:copyright: 2003-2009 Sylvain Thenault
:contact: mailto:thenault@gmail.com
"""
diff --git a/nodes_as_string.py b/nodes_as_string.py
index c30290b1..e541159e 100644
--- a/nodes_as_string.py
+++ b/nodes_as_string.py
@@ -1,4 +1,24 @@
+# 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.,
+# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+"""this module contains exceptions used in the astng library
+
+:author: Sylvain Thenault
+:copyright: 2008-2009 LOGILAB S.A. (Paris, FRANCE)
+:contact: http://www.logilab.fr/ -- mailto:python-projects@logilab.org
+:copyright: 2008-2009 Sylvain Thenault
+:contact: mailto:thenault@gmail.com
+"""
+
"""This module renders ASTNG nodes to string representation.
It will problably not work on compiler.ast or _ast trees.
"""
diff --git a/patchcomptransformer.py b/patchcomptransformer.py
index d060b68c..7e8183c5 100644
--- a/patchcomptransformer.py
+++ b/patchcomptransformer.py
@@ -13,9 +13,9 @@
"""Monkey patch compiler.transformer to fix line numbering bugs
:author: Sylvain Thenault
-:copyright: 2003-2008 LOGILAB S.A. (Paris, FRANCE)
+:copyright: 2003-2009 LOGILAB S.A. (Paris, FRANCE)
:contact: http://www.logilab.fr/ -- mailto:python-projects@logilab.org
-:copyright: 2003-2008 Sylvain Thenault
+:copyright: 2003-2009 Sylvain Thenault
:contact: mailto:thenault@gmail.com
"""
diff --git a/raw_building.py b/raw_building.py
index 25145f5a..4df72295 100644
--- a/raw_building.py
+++ b/raw_building.py
@@ -14,9 +14,9 @@
(build_* functions) or from living object (object_build_* functions)
:author: Sylvain Thenault
-:copyright: 2003-2008 LOGILAB S.A. (Paris, FRANCE)
+:copyright: 2003-2009 LOGILAB S.A. (Paris, FRANCE)
:contact: http://www.logilab.fr/ -- mailto:python-projects@logilab.org
-:copyright: 2003-2008 Sylvain Thenault
+:copyright: 2003-2009 Sylvain Thenault
:contact: mailto:thenault@gmail.com
"""
diff --git a/rebuilder.py b/rebuilder.py
index 57a90099..87e97962 100644
--- a/rebuilder.py
+++ b/rebuilder.py
@@ -1,4 +1,24 @@
+# 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.,
+# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+"""this module contains exceptions used in the astng library
+
+:author: Sylvain Thenault
+:copyright: 2008-2009 LOGILAB S.A. (Paris, FRANCE)
+:contact: http://www.logilab.fr/ -- mailto:python-projects@logilab.org
+:copyright: 2008-2009 Sylvain Thenault
+:contact: mailto:thenault@gmail.com
+"""
+
"""this module contains utilities for rebuilding a compiler.ast
or _ast tree in order to get a single ASTNG representation
"""
diff --git a/scoped_nodes.py b/scoped_nodes.py
index fc766575..04fe8995 100644
--- a/scoped_nodes.py
+++ b/scoped_nodes.py
@@ -19,9 +19,9 @@ below.
:author: Sylvain Thenault
-:copyright: 2003-2008 LOGILAB S.A. (Paris, FRANCE)
+:copyright: 2003-2009 LOGILAB S.A. (Paris, FRANCE)
:contact: http://www.logilab.fr/ -- mailto:python-projects@logilab.org
-:copyright: 2003-2008 Sylvain Thenault
+:copyright: 2003-2009 Sylvain Thenault
:contact: mailto:thenault@gmail.com
"""
from __future__ import generators
diff --git a/utils.py b/utils.py
index 2483450f..743be766 100644
--- a/utils.py
+++ b/utils.py
@@ -14,9 +14,9 @@
extract information from it
:author: Sylvain Thenault
-:copyright: 2003-2008 LOGILAB S.A. (Paris, FRANCE)
+:copyright: 2003-2009 LOGILAB S.A. (Paris, FRANCE)
:contact: http://www.logilab.fr/ -- mailto:python-projects@logilab.org
-:copyright: 2003-2008 Sylvain Thenault
+:copyright: 2003-2009 Sylvain Thenault
:contact: mailto:thenault@gmail.com
"""