diff options
author | Peter Simons <simons@cryp.to> | 2009-08-01 10:37:14 +0200 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2009-08-01 10:37:14 +0200 |
commit | 6f3b4a93c651634bbdf3865047e9b88dbf88756b (patch) | |
tree | 101ff50b9c3c440042201e5258dc5685ce3d568a | |
parent | 548839e3c0b0ffbf7846a941a6556187e8883864 (diff) | |
download | autoconf-archive-6f3b4a93c651634bbdf3865047e9b88dbf88756b.tar.gz |
macro.py: added support for parsing obsolete macros
-rwxr-xr-x | macro.py | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -103,6 +103,12 @@ class Macro: if body.pop(0) != '': raise Exception("%s: malformed license section" % filePath) body = collapseText(body) + elif key == "obsolete macro": + key = "obsolete" + if '' in body: + raise Exception("%s: malformed obsoleted section" % filePath) + elif key == "description": + body = collapseText(body) else: raise Exception("%s: unknown section %r in macro" % (filePath, key)) self.__dict__[key] = body |