Commit b18682a8 authored by Ivan Tyagov's avatar Ivan Tyagov

Coding styles

See merge request nexedi/wendelin!119
parents f7d2280c cafe0214
......@@ -6,18 +6,18 @@
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
<global name="_reconstructor" module="copy_reg"/>
</klass>
<tuple/>
<tuple>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
<global name="object" module="__builtin__"/>
<none/>
</tuple>
<state>
<dictionary>
<item>
......
......@@ -11,7 +11,7 @@ import string
def getRandomString():
return 'test_%s' %''.join([random.choice(string.ascii_letters + string.digits) \
for n in xrange(32)])
for _ in xrange(32)])
# Game of Life examples
default_input_ndarray = np.array([[0,0,0,0,0,0],
......@@ -55,7 +55,7 @@ def game_of_life_out_of_core(self):
transaction.commit()
print_list.append(str(life_area))
for i in range(4):
for _ in range(4):
iterate_2(life_area)
print_list.append(str(life_area))
......@@ -117,7 +117,7 @@ def game_of_life(self):
Z = default_input_ndarray
print_list.append(str(Z))
for i in range(4):
for _ in range(4):
iterate_2(Z)
print_list.append(str(Z))
......
......@@ -39,11 +39,7 @@
<item>
<key> <string>text_content_warning_message</string> </key>
<value>
<tuple>
<string>W: 14, 8: Unused variable \'n\' (unused-variable)</string>
<string>W: 58, 6: Unused variable \'i\' (unused-variable)</string>
<string>W:120, 6: Unused variable \'i\' (unused-variable)</string>
</tuple>
<tuple/>
</value>
</item>
<item>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment