On 24 January 2013 00:10, RichardH <[email protected]> wrote:
> I just downloaded asciidoc-8.6.8.zip, got article.txt from 
> http://asciidoc.org/,
> and from that page I tried the first example:-
>
>>asciidoc.py -b htm l5 -a icons -a toc2 -a theme=flask article.txt
>
> I got:-
>   File "...\asciidoc.py",
>   line 101 except KeyError, k: raise AttributeError, k
>                   ^
>   SyntaxError: invalid syntax
>
> Here are the lines 99 100 101 of asciidoc.py:-
>    99    def __delattr__(self, key):
>   100        try: del self[key]
>   101        except KeyError, k: raise AttributeError, k
>
>
> Is this likely to be a Python 3 vs 2 problem? In which case, is there
> a simple workaround?

Hi,

Asciidoc is Python 2, not 3.   You need to install Python 2 as well as Python 3.

Cheers
Lex

>
> I'm a Python newbie, running Python version 3.3.0, on WinXP
> Professional..
>
> Thanks v. much
>
> RH
>
> --
> You received this message because you are subscribed to the Google Groups 
> "asciidoc" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/asciidoc?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
Visit this group at http://groups.google.com/group/asciidoc?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to