##// END OF EJS Templates
use "else:" in demo
Ville M. Vainio -
Show More
@@ -3,7 +3,7 b''
3 <leo_file>
3 <leo_file>
4 <leo_header file_format="2" tnodes="0" max_tnode_index="0" clone_windows="0"/>
4 <leo_header file_format="2" tnodes="0" max_tnode_index="0" clone_windows="0"/>
5 <globals body_outline_ratio="0.307814992026">
5 <globals body_outline_ratio="0.307814992026">
6 <global_window_position top="122" left="624" height="627" width="1280"/>
6 <global_window_position top="311" left="261" height="627" width="1280"/>
7 <global_log_window_position top="0" left="0" height="0" width="0"/>
7 <global_log_window_position top="0" left="0" height="0" width="0"/>
8 </globals>
8 </globals>
9 <preferences/>
9 <preferences/>
@@ -44,14 +44,14 b''
44 <v t="vivainio.20080219225804"><vh>strlist</vh></v>
44 <v t="vivainio.20080219225804"><vh>strlist</vh></v>
45 </v>
45 </v>
46 <v t="vivainio.20080218201219" a="E"><vh>Direct variables</vh>
46 <v t="vivainio.20080218201219" a="E"><vh>Direct variables</vh>
47 <v t="vivainio.20080222201226"><vh>NewHeadline</vh></v>
47 <v t="vivainio.20080222201226" a="TV"><vh>NewHeadline</vh></v>
48 <v t="vivainio.20080218201219.2"><vh>bar</vh></v>
48 <v t="vivainio.20080218201219.2"><vh>bar</vh></v>
49 </v>
49 </v>
50 <v t="vivainio.20080222202211"><vh>test stuff</vh></v>
50 <v t="vivainio.20080222202211"><vh>test stuff</vh></v>
51 <v t="vivainio.20080223142403" a="E"><vh>@ipy-results</vh>
51 <v t="vivainio.20080223142403" a="E"><vh>@ipy-results</vh>
52 <v t="vivainio.20080223142403.1"><vh>foo</vh></v>
52 <v t="vivainio.20080223142403.1"><vh>foo</vh></v>
53 </v>
53 </v>
54 <v t="vivainio.20080222202211.1" a="ETV"><vh>spam</vh></v>
54 <v t="vivainio.20080222202211.1" a="E"><vh>spam</vh></v>
55 </vnodes>
55 </vnodes>
56 <tnodes>
56 <tnodes>
57 <t tx="vivainio.20080218184525">?</t>
57 <t tx="vivainio.20080218184525">?</t>
@@ -129,7 +129,13 b' print "hello"'
129 def f(x):
129 def f(x):
130 return x.upper()
130 return x.upper()
131
131
132 f('hello world')</t>
132 f('hello world')
133
134 if 0:
135 print "foo"
136 else:
137 print "bar"
138 </t>
133 <t tx="vivainio.20080222202211"></t>
139 <t tx="vivainio.20080222202211"></t>
134 <t tx="vivainio.20080222202211.1" ipython="7d71005506636f6f7264737101284b0c4bde747102732e">@cl rfile
140 <t tx="vivainio.20080222202211.1" ipython="7d71005506636f6f7264737101284b0c4bde747102732e">@cl rfile
135 hello
141 hello
General Comments 0
You need to be logged in to leave comments. Login now