~ubuntu-branches/ubuntu/intrepid/plplot/intrepid

« back to all changes in this revision

Viewing changes to bindings/python/makedocstrings.py

  • Committer: Bazaar Package Importer
  • Author(s): Rafael Laboissiere
  • Date: 2006-11-04 10:19:34 UTC
  • mfrom: (2.1.8 edgy)
  • Revision ID: james.westby@ubuntu.com-20061104101934-mlirvdg4gpwi6i5q
Tags: 5.6.1-10
* Orphaning the package
* debian/control: Changed the maintainer to the Debian QA Group

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
 
13
13
# You should have received a copy of the GNU Library General Public License
14
14
# along with the file PLplot; if not, write to the Free Software
15
 
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
 
15
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA
16
16
 
17
17
# The recent versions of SWIG (at least for 1.3.11) do not handle documentation
18
18
# strings correctly
47
47
      #print 'here'
48
48
      while 1:
49
49
        line = infile.readline()
50
 
        m = re.match('[ \t]+\{[ \t]\(char \*\)"([a-zA-Z_0-9]+)"(.*)\},', line)
 
50
        m = re.match('[ \t]+\{[ \t]\(char \*\)"([a-zA-Z_0-9]+)"(.*)\, NULL \},', line)
51
51
        if not m:
52
 
          break
 
52
          m = re.match('[ \t]+\{[ \t]\(char \*\)"([a-zA-Z_0-9]+)"(.*)\},', line)
 
53
          if not m:
 
54
            break
53
55
        func = m.group(1)
54
56
        #print 'look for',func
55
57
        if func in docstrings.keys():