travellhyne / f2py

Automatically exported from code.google.com/p/f2py
Other
0 stars 0 forks source link

[patch] all_mod_provides should contain contents of module_interface #35

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
This patch adds the contents of module_interface to the list of all the public 
symbols provided by a module (all_mod_provides)

diff -r c5b88e996b11 -r 732d6b540026 fparser/statements.py
--- a/fparser/statements.py     Fri Jan 27 14:26:10 2012 +0000
+++ b/fparser/statements.py     Fri Jan 27 14:29:58 2012 +0000
@@ -930,6 +930,7 @@
         norenames = [item for item in self.items if '=>' not in item]
         all_mod_provides = dict(module.a.module_provides)
         all_mod_provides.update(module.a.use_provides)
+        all_mod_provides.update(module.a.module_interface)
         if self.isonly:
             # populate use_provides with items/renames only.
             for rename, orig in renames:

Original issue reported on code.google.com by james.ke...@gmail.com on 27 Jan 2012 at 2:41