Here is a patch that fixes many english typos in the logilab-astng-0.19.1 package.

I hope this will be useful for you and not create a regression nightmare...

Dotan Barak
diff -r logilab-astng-0.19.1.orig/builder.py logilab-astng-0.19.1/builder.py
131c131
<         """recurse on the ast (soon ng) to add some arguments et method"""
---
>         """recurse on the ast (soon ng) to add some arguments at method"""
diff -r logilab-astng-0.19.1.orig/ChangeLog logilab-astng-0.19.1/ChangeLog
48c48
<     * fix bug w/ loop assigment in .lookup
---
>     * fix bug w/ loop assignment in .lookup
61c61
<     * new InstanceMethod node introduced to wrap bound method (eg Function
---
>     * new InstanceMethod node introduced to wrap bound method (e.g. Function
67c67
<     * fix #3651: crash when callable as defaut arg
---
>     * fix #3651: crash when callable as default arg
97c97
<     * new pytype method on possibly infered node (eg module, classes, 
const...)
---
>     * new pytype method on possibly inferred node (e.g. module, classes, 
> const...)
172c172
<       assigment type node (Assign, For, ListCompFor, GenExprFor,
---
>       assignment type node (Assign, For, ListCompFor, GenExprFor,
189c189
<     * some major inference improvments and refactoring ! The drawback is
---
>     * some major inference improvements and refactoring ! The drawback is
212c212
<       with realier version of python 2.4
---
>       with earlier version of python 2.4
216c216
<     * fix a bug occuring when building an astng from a living object with
---
>     * fix a bug occurring when building an astng from a living object with
225c225
<       encountered more than once time (eg builtins.object) (close #10069)
---
>       encountered more than once time (e.g. builtins.object) (close #10069)
250,251c250,251
<        to each assigment statements instead of a single reference to the
<        first assigment statement.
---
>        to each assignment statements instead of a single reference to the
>        first assignment statement.
diff -r logilab-astng-0.19.1.orig/inference.py logilab-astng-0.19.1/inference.py
79c79
<     """when infering a function call, this class is used to remember values
---
>     """when inferring a function call, this class is used to remember values
94c94
<         """infer a function argument value according the the call context"""
---
>         """infer a function argument value according to the call context"""
diff -r logilab-astng-0.19.1.orig/infutils.py logilab-astng-0.19.1/infutils.py
91c91
<         in exclusive branchs
---
>         in exclusive branches
109c109
<             # nodes are in exclusive branchs
---
>             # nodes are in exclusive branches
132,133c132,133
<     """return an iterator on nodes infered by the given statement if the 
infered
<     value is a list or a tuple, recurse on it to get values infered by its
---
>     """return an iterator on nodes inferred by the given statement if the 
> inferred
>     value is a list or a tuple, recurse on it to get values inferred by its
151c151
<     """return an iterator on statements infered by each statement in <stmts>
---
>     """return an iterator on statements inferred by each statement in <stmts>
261c261
<         """infered getattr"""
---
>         """inferred getattr"""
diff -r logilab-astng-0.19.1.orig/__init__.py logilab-astng-0.19.1/__init__.py
17c17
< pylint... Well, actually the development of this library is essentialy
---
> pylint... Well, actually the development of this library is essentially
23c23
< them astng ;) by visiting an existant ast tree or by inspecting living
---
> them astng ;) by visiting an existent ast tree or by inspecting living
diff -r logilab-astng-0.19.1.orig/inspector.py logilab-astng-0.19.1/inspector.py
14c14
< Try to resolve definitions (namespace) dictionnary, relationship...
---
> Try to resolve definitions (namespace) dictionary, relationship...
51c51
<         """generate a new identifer
---
>         """generate a new identifier
94c94
<          * optionaly tag the node wth a unique id
---
>          * optionally tag the node with a unique id
104c104
<          * optionaly tag the node wth a unique id
---
>          * optionally tag the node with a unique id
116c116
<          * optionaly tag the node wth a unique id
---
>          * optionally tag the node with a unique id
130c130
<          * optionaly tag the node wth a unique id
---
>          * optionally tag the node with a unique id
157c157
<          * optionaly tag the node wth a unique id
---
>          * optionally tag the node with a unique id
230c230
<             # analyze dependancies
---
>             # analyze dependencies
254c254
<         """notify an imported module, used to analyze dependancies
---
>         """notify an imported module, used to analyze dependencies
262c262
<             # handle dependancies
---
>             # handle dependencies
diff -r logilab-astng-0.19.1.orig/logilab_astng.egg-info/PKG-INFO 
logilab-astng-0.19.1/logilab_astng.egg-info/PKG-INFO
11c11
<         pylint... Well, actually the development of this library is essentialy
---
>         pylint... Well, actually the development of this library is 
> essentially
17c17
<         generate extended ast (let's call them astng ;) by visiting an 
existant ast
---
>         generate extended ast (let's call them astng ;) by visiting an 
> existent ast
diff -r logilab-astng-0.19.1.orig/lookup.py logilab-astng-0.19.1/lookup.py
19,20c19,20
< Be careful, lookup is nternal and returns a tuple (scope, [stmts]), while
< ilookup returns an iterator on infered values.
---
> Be careful, lookup is internal and returns a tuple (scope, [stmts]), while
> ilookup returns an iterator on inferred values.
122c122
<     """infered lookup
---
>     """inferred lookup
124c124
<     return an iterator on infered values of the statements returned by
---
>     return an iterator on inferred values of the statements returned by
187,188c187,188
<             # we are inside a loop, loop var assigment is hidding previous
<             # assigment
---
>             # we are inside a loop, loop var assignment is hiding previous
>             # assignment
204c204
<             # assignement and both are not exclusive, we can drop the previous
---
>             # assignment and both are not exclusive, we can drop the previous
224c224
<             # previous assigments if any (hence the test on optional_assign)
---
>             # previous assignments if any (hence the test on optional_assign)
diff -r logilab-astng-0.19.1.orig/manager.py logilab-astng-0.19.1/manager.py
13c13
< """astng manager: avoid multible astng build of a same module when
---
> """astng manager: avoid multiple astng build of a same module when
239c239
<                     'Unexpected error while retreiving module for %s: %s'
---
>                     'Unexpected error while retrieving module for %s: %s'
248c248
<                 'Unexpected error while retreiving name for %s: %s'
---
>                 'Unexpected error while retrieving name for %s: %s'
diff -r logilab-astng-0.19.1.orig/nodes_as_string.py 
logilab-astng-0.19.1/nodes_as_string.py
23c23
< It will problably not work on compiler.ast or _ast trees.
---
> It will probably not work on compiler.ast or _ast trees.
diff -r logilab-astng-0.19.1.orig/_nodes_ast.py 
logilab-astng-0.19.1/_nodes_ast.py
168c168
< # some astng nodes unexistant in _ast 
#########################################
---
> # some astng nodes unexistent in _ast 
> #########################################
199c199
<     """REbuilds the _ast tree to become an ASTNG tree"""
---
>     """Rebuilds the _ast tree to become an ASTNG tree"""
diff -r logilab-astng-0.19.1.orig/_nodes_compiler.py 
logilab-astng-0.19.1/_nodes_compiler.py
90c90
< From.level = 0 # will be overiden by instance attribute with py>=2.5
---
> From.level = 0 # will be overridden by instance attribute with py>=2.5
132c132
< # some astng nodes unexistant in compiler 
#####################################
---
> # some astng nodes unexistent in compiler 
> #####################################
139c139
<         # XXX parent.lineno is wrong, cant't catch the right line ...
---
>         # XXX parent.lineno is wrong, can't catch the right line ...
diff -r logilab-astng-0.19.1.orig/nodes.py logilab-astng-0.19.1/nodes.py
142c142
<     original class from the compiler.ast / _ast module using its dictionnary
---
>     original class from the compiler.ast / _ast module using its dictionary
diff -r logilab-astng-0.19.1.orig/patchcomptransformer.py 
logilab-astng-0.19.1/patchcomptransformer.py
89c89
<     """ovverides transformer for a better source line number handling"""
---
>     """overrides transformer for a better source line number handling"""
diff -r logilab-astng-0.19.1.orig/PKG-INFO logilab-astng-0.19.1/PKG-INFO
11c11
<         pylint... Well, actually the development of this library is essentialy
---
>         pylint... Well, actually the development of this library is 
> essentially
17c17
<         generate extended ast (let's call them astng ;) by visiting an 
existant ast
---
>         generate extended ast (let's call them astng ;) by visiting an 
> existent ast
diff -r logilab-astng-0.19.1.orig/__pkginfo__.py 
logilab-astng-0.19.1/__pkginfo__.py
45c45
< pylint... Well, actually the development of this library is essentialy
---
> pylint... Well, actually the development of this library is essentially
51c51
< generate extended ast (let's call them astng ;) by visiting an existant ast
---
> generate extended ast (let's call them astng ;) by visiting an existent ast
diff -r logilab-astng-0.19.1.orig/protocols.py logilab-astng-0.19.1/protocols.py
53c53
<     # XXX log potentialy raised TypeError
---
>     # XXX log potentially raised TypeError
128c128
< (eg not infered) according to the assignment type.
---
> (e.g. not inferred) according to the assignment type.
158c158
<                 # we acheived to resolved the assigment path,
---
>                 # we achieved to resolved the assignment path,
165c165
<                 # search on each possibly infered value
---
>                 # search on each possibly inferred value
202c202
<     # arguments informmtion may be missing, in which case we can't do anything
---
>     # arguments information may be missing, in which case we can't do anything
270c270
<                 # we acheived to resolved the assigment path, don't infer the
---
>                 # we achieved to resolved the assignment path, don't infer the
277c277
<                 # possibly infered value
---
>                 # possibly inferred value
diff -r logilab-astng-0.19.1.orig/raw_building.py 
logilab-astng-0.19.1/raw_building.py
101c101
<         """create and intialize an astng From import statement"""
---
>         """create and initialize an astng From import statement"""
105c105
<         """create and intialize an astng From import statement"""
---
>         """create and initialize an astng From import statement"""
diff -r logilab-astng-0.19.1.orig/README logilab-astng-0.19.1/README
9c9
< pylint... Well, actually the development of this library is essentialy
---
> pylint... Well, actually the development of this library is essentially
19c19
< an existant ast tree or by inspecting living object. Methods are added
---
> an existent ast tree or by inspecting living object. Methods are added
diff -r logilab-astng-0.19.1.orig/README._ast_compatibility 
logilab-astng-0.19.1/README._ast_compatibility
1c1
< XXX deprecated, update by descrinbg the unified tree structure, how we 
acheive this and remaining differences...
---
> XXX deprecated, update by describing the unified tree structure, how we 
> achieve this and remaining differences...
18c18
< class names to compiler class names (eg for instance when a `_ast.ClassDef` 
node
---
> class names to compiler class names (e.g. for instance when a `_ast.ClassDef` 
> node
22c22
< Attribute names are made compatible, and I've choosen _ast or compiler's name
---
> Attribute names are made compatible, and I've chosen _ast or compiler's name
diff -r logilab-astng-0.19.1.orig/scoped_nodes.py 
logilab-astng-0.19.1/scoped_nodes.py
70c70
<     original class from the compiler.ast module using its dictionnary
---
>     original class from the compiler.ast module using its dictionary
81c81
<         """return the 'qualified' name of the node, eg module.name,
---
>         """return the 'qualified' name of the node, e.g. module.name,
127c127
<         associated with the given name in the locals dictionnary
---
>         associated with the given name in the locals dictionary
197c197
<     original class from the compiler.ast module using its dictionnary
---
>     original class from the compiler.ast module using its dictionary
251c251
<         """infered getattr"""
---
>         """inferred getattr"""
317c317
<         """return the list of imported names when this module is 'wildard
---
>         """return the list of imported names when this module is 'wildcard
360c360
<     original class from the compiler.ast module using its dictionnary
---
>     original class from the compiler.ast module using its dictionary
396c396
<         # (eg pylint...) when is_method() return True
---
>         # (e.g. pylint...) when is_method() return True
575c575
<     original class from the compiler.ast module using its dictionnary
---
>     original class from the compiler.ast module using its dictionary
623c623
<     # list of parent class as a list of string (ie names as they appears
---
>     # list of parent class as a list of string (i.e. names as they appears
739c739
<         """infered getattr, need special treatment in class to handle
---
>         """inferred getattr, need special treatment in class to handle
742c742
<         # set lookoup name since this is necessary to infer on import nodes 
for
---
>         # set lookup name since this is necessary to infer on import nodes for
diff -r logilab-astng-0.19.1.orig/test/unittest_builder.py 
logilab-astng-0.19.1/test/unittest_builder.py
417c417
<         # XXX just check the first one. Actually 3 objects are infered (look 
at
---
>         # XXX just check the first one. Actually 3 objects are inferred (look 
> at
431c431
<             # n unvailable touside gen expr scope
---
>             # n unavailable outside gen expr scope
601c601
< #         # check monkey patching of the compiler module has been infered
---
> #         # check monkey patching of the compiler module has been inferred
diff -r logilab-astng-0.19.1.orig/test/unittest_inference.py 
logilab-astng-0.19.1/test/unittest_inference.py
659c659
<         # XXX failing with python > 2.3 since __builtin__.help assigment has
---
>         # XXX failing with python > 2.3 since __builtin__.help assignment has
diff -r logilab-astng-0.19.1.orig/test/unittest_lookup.py 
logilab-astng-0.19.1/test/unittest_lookup.py
130c130
<         # inside the loop, only one possible assigment
---
>         # inside the loop, only one possible assignment
132c132
<         # outside the loop, two possible assigments
---
>         # outside the loop, two possible assignments
diff -r logilab-astng-0.19.1.orig/test/unittest_scoped_nodes.py 
logilab-astng-0.19.1/test/unittest_scoped_nodes.py
1c1
< """tests for specific behaviour of astng scoped nodes (ie module, class and
---
> """tests for specific behaviour of astng scoped nodes (i.e. module, class and
diff -r logilab-astng-0.19.1.orig/utils.py logilab-astng-0.19.1/utils.py
46c46
<     Visitors inheritating from ASTVisitors could visit
---
>     Visitors inheriting from ASTVisitors could visit
330c330
<     """visit a project by traversing the locals dictionnary"""
---
>     """visit a project by traversing the locals dictionary"""
_______________________________________________
Python-Projects mailing list
[email protected]
http://lists.logilab.org/mailman/listinfo/python-projects

Reply via email to