Commit b18682a8 authored by Ivan Tyagov's avatar Ivan Tyagov

Coding styles

See merge request !119
parents f7d2280c cafe0214
...@@ -6,18 +6,18 @@ ...@@ -6,18 +6,18 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item> <item>
<key> <string>_bind_names</string> </key> <key> <string>_bind_names</string> </key>
<value> <value>
<object> <object>
<klass> <klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> <global name="_reconstructor" module="copy_reg"/>
</klass> </klass>
<tuple/> <tuple>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
<global name="object" module="__builtin__"/>
<none/>
</tuple>
<state> <state>
<dictionary> <dictionary>
<item> <item>
......
...@@ -11,7 +11,7 @@ import string ...@@ -11,7 +11,7 @@ import string
def getRandomString(): def getRandomString():
return 'test_%s' %''.join([random.choice(string.ascii_letters + string.digits) \ return 'test_%s' %''.join([random.choice(string.ascii_letters + string.digits) \
for n in xrange(32)]) for _ in xrange(32)])
# Game of Life examples # Game of Life examples
default_input_ndarray = np.array([[0,0,0,0,0,0], default_input_ndarray = np.array([[0,0,0,0,0,0],
...@@ -55,7 +55,7 @@ def game_of_life_out_of_core(self): ...@@ -55,7 +55,7 @@ def game_of_life_out_of_core(self):
transaction.commit() transaction.commit()
print_list.append(str(life_area)) print_list.append(str(life_area))
for i in range(4): for _ in range(4):
iterate_2(life_area) iterate_2(life_area)
print_list.append(str(life_area)) print_list.append(str(life_area))
...@@ -117,7 +117,7 @@ def game_of_life(self): ...@@ -117,7 +117,7 @@ def game_of_life(self):
Z = default_input_ndarray Z = default_input_ndarray
print_list.append(str(Z)) print_list.append(str(Z))
for i in range(4): for _ in range(4):
iterate_2(Z) iterate_2(Z)
print_list.append(str(Z)) print_list.append(str(Z))
......
...@@ -39,11 +39,7 @@ ...@@ -39,11 +39,7 @@
<item> <item>
<key> <string>text_content_warning_message</string> </key> <key> <string>text_content_warning_message</string> </key>
<value> <value>
<tuple> <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>
</value> </value>
</item> </item>
<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