Skip to content

Commit

Permalink
Fix E226 missing whitespace around arithmetic operator
Browse files Browse the repository at this point in the history
  • Loading branch information
dchentech committed Apr 26, 2015
1 parent e04839d commit 9b85156
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions luiti/manager/table.py
Expand Up @@ -19,7 +19,7 @@ def task_cls_inspect(cls):
return cls.__name__

task_headers = ["", "All Tasks"]
task_table = [[idx1+1, task_cls_inspect(item1['task_cls'])]
task_table = [[idx1 + 1, task_cls_inspect(item1['task_cls'])]
for idx1, item1 in enumerate(sorted(result['success']))]
task_table.extend([["total", len(result['success'])]])

Expand Down Expand Up @@ -74,7 +74,7 @@ def print_files_by_task_cls_and_date_range(curr_task, args, opts=None):
print
print "Files related infos"
Table.puts(file_table, file_headers, tablefmt="grid")
print "\n"*3
print "\n" * 3

@staticmethod
def print_task_info(curr_task, dep_tasks_on_curr_task):
Expand Down
2 changes: 1 addition & 1 deletion luiti/utils/date_utils.py
Expand Up @@ -44,6 +44,6 @@ def fixed_weeks_in_range(date_range_str):

@staticmethod
def date_value_by_type_in_last(date_value_1, date_type_1):
val1 = arrow.get(date_value_1).replace(**{(date_type_1+'s'): -1}) \
val1 = arrow.get(date_value_1).replace(**{(date_type_1 + 's'): -1}) \
.floor(date_type_1)
return val1
4 changes: 2 additions & 2 deletions tests/test_luiti_ext.py
Expand Up @@ -86,8 +86,8 @@ def serialize_and_unserialize_a_task_instance(cls_name, serialize):
getattr(task_instance, ref_task_name_3),
getattr(task_instance_2, ref_task_name_3))
self.assertEqual(
hash(getattr(task_instance, ref_task_name_3+"_task")),
hash(getattr(task_instance_2, ref_task_name_3+"_task")))
hash(getattr(task_instance, ref_task_name_3 + "_task")),
hash(getattr(task_instance_2, ref_task_name_3 + "_task")))

serialize_and_unserialize_a_task_instance('ADay', pickle)
serialize_and_unserialize_a_task_instance('ADay', cPickle)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_utils.py
Expand Up @@ -22,7 +22,7 @@ def test_mr(self):

self.assertFalse(MRUtils.is_mr_line("[1,2]"))
self.assertTrue(MRUtils.is_mr_line("hello\t{framework:luigi}"))
self.assertTrue(MRUtils.is_mr_line("1@@" + "2"*40 + "\t[world]"))
self.assertTrue(MRUtils.is_mr_line("1@@" + "2" * 40 + "\t[world]"))

self.assertEqual(
MRUtils.unicode_value({u"hello": u"世界"}, "hello"), u"世界")
Expand Down

0 comments on commit 9b85156

Please sign in to comment.