gstarnberger/uncompyle

Syntax error at or near `GET_ITER' token

Opened this issue · 0 comments

Can't uncompyle forest.pyc

#2010.09.28 20:01:50 CEST

"""Operations on trees with nested Mercurial repositories.

This extension provides commands that apply to a composite tree called
a forest. Some commands simply wrap standard Mercurial commands, such
as 'clone' or 'status', and others involve a snapshot file.

A snapshot file represents the state of a forest at a given time. It
has the format of a ConfigParser file and lists the trees in a forest,
each tree with the following attributes:

root path relative to the top-level tree
revision the revision the working directory is based on
paths a list of (alias, location) pairs

The 'fsnap' command generates or updates such a file based on a forest
in the file system. Other commands use this information to populate a
forest or to pull/push changes.

Configuration

This extension recognizes the following item in the forest
configuration section:

walkhg = (0|no|false|1|yes|true)

Whether repositories directly under a .hg directory should be
skipped (0|no|false) or not (1|yes|true). The default value is true.
Some commands accept the --walkhg command-line option to override
the behavior selected by this item.

partial = (0|no|false|1|yes|true)

Whether fpull should default to partial. The default value is 0.

"""
Traceback (most recent call last):
File "foo.py", line 107, in
main(src_base, out_base, files, codes, outfile, showasm, showast, do_verify)
File "/home/gst/cvs/uncompyle/uncompyle/init.py", line 183, in main
uncompyle_file(infile, outstream, showasm, showast)
File "/home/gst/cvs/uncompyle/uncompyle/init.py", line 120, in uncompyle_file
uncompyle(version, co, outstream, showasm, showast)
File "/home/gst/cvs/uncompyle/uncompyle/init.py", line 113, in uncompyle
walker.gen_source(ast, customize)
File "/home/gst/cvs/uncompyle/uncompyle/Walker.py", line 842, in gen_source
self.print_(self.traverse(ast, isLambda=isLambda))
File "/home/gst/cvs/uncompyle/uncompyle/Walker.py", line 367, in traverse
self.preorder(node)
File "/home/gst/cvs/uncompyle/uncompyle/spark.py", line 682, in preorder
self.preorder(kid)
File "/home/gst/cvs/uncompyle/uncompyle/spark.py", line 682, in preorder
self.preorder(kid)
File "/home/gst/cvs/uncompyle/uncompyle/spark.py", line 677, in preorder
self.default(node)
File "/home/gst/cvs/uncompyle/uncompyle/Walker.py", line 640, in default
self.engine(table[key], node)
File "/home/gst/cvs/uncompyle/uncompyle/Walker.py", line 608, in engine
self.preorder(node[entry[arg]])
File "/home/gst/cvs/uncompyle/uncompyle/spark.py", line 675, in preorder
func(node)
File "/home/gst/cvs/uncompyle/uncompyle/Walker.py", line 494, in n_mkfunc
self.make_function(node, isLambda=0)
File "/home/gst/cvs/uncompyle/uncompyle/Walker.py", line 743, in make_function
ast = self.build_ast(code.tokens, code.customize)
File "/home/gst/cvs/uncompyle/uncompyle/Walker.py", line 853, in build_ast
raise ParserError(e, tokens)
uncompyle.Walker.ParserError: --- This code section failed: ---
0 LOAD_GLOBAL 'findcmd'
3 LOAD_FAST 'ui'
6 LOAD_FAST 'cmd'
9 LOAD_FAST 'table'
12 CALL_FUNCTION_3 ''
15 UNPACK_SEQUENCE_2 ''
18 STORE_FAST 'aliases'
21 STORE_FAST 'spec'
24 LOAD_GLOBAL 'list'
27 LOAD_FAST 'spec'
30 LOAD_CONST 1
33 BINARY_SUBSCR ''
34 CALL_FUNCTION_1 ''
37 STORE_FAST 'res'
40 LOAD_FAST 'remove'
43 LOAD_CONST ''
46 COMPARE_OP 'is not'
49 JUMP_IF_FALSE '127'
52 POP_TOP ''
53 BUILD_LIST_0 ''
56 DUP_TOP ''
57 STORE_FAST '
[1]'
60 LOAD_FAST 'res'
63 GET_ITER ''
64 FOR_ITER '118'
67 STORE_FAST 'opt'
70 LOAD_FAST 'opt'
73 LOAD_CONST ''
76 BINARY_SUBSCR ''
77 LOAD_FAST 'remove'
80 COMPARE_OP 'not in'
83 JUMP_IF_FALSE '114'
86 POP_TOP ''
87 LOAD_FAST 'opt'
90 LOAD_CONST 1
93 BINARY_SUBSCR ''
94 LOAD_FAST 'remove'
97 COMPARE_OP 'not in'
100 JUMP_IF_FALSE '114'
103 POP_TOP ''
104 LOAD_FAST '
[1]'
107 LOAD_FAST 'opt'
110 LIST_APPEND ''
111 JUMP_ABSOLUTE '64'
114_0 COME_FROM ''
114_1 COME_FROM ''
114 POP_TOP ''
115 JUMP_ABSOLUTE '64'
118_0 COME_FROM ''
118 DELETE_FAST '_[1]'
121 STORE_FAST 'res'
124 JUMP_FORWARD '128'
127_0 COME_FROM ''
127 POP_TOP ''
128_0 COME_FROM ''
128 LOAD_FAST 'res'
131 RETURN_VALUE ''

Syntax error at or near `GET_ITER' token at offset 63