Closed GoogleCodeExporter closed 9 years ago
@drinksev: Does it work if markdown2.py is changed with this patch?
{{{
Index: lib/markdown2.py
===================================================================
--- lib/markdown2.py (revision 166)
+++ lib/markdown2.py (working copy)
@@ -1742,7 +1742,9 @@
import doctest
doctest.testmod()
-def main(argv=sys.argv):
+def main(argv=None):
+ if argv is None:
+ argv = sys.argv
if not logging.root.handlers:
logging.basicConfig()
}}}
In other words, don't rely in 'sys.argv' being defined at the top-level.
I'm not able to test with Postgres easily. I hadn't known that `sys.argv` isn't
defined in a postgres stored procedure.
Original comment by tre...@gmail.com
on 22 Sep 2008 at 6:46
Works perfectly with the above changes.
Original comment by drink...@gmail.com
on 22 Sep 2008 at 8:13
Checked in: r167.
This will be in markdown2 v1.0.1.11 when I release that (don't know when that
will be
yet). Let me know if that holds you up.
Thanks for the report.
Original comment by tre...@gmail.com
on 22 Sep 2008 at 8:20
Original issue reported on code.google.com by
drink...@gmail.com
on 22 Sep 2008 at 5:46