mirror of https://github.com/scrapy/scrapy.git
fix(flake8): lint errors
E226 missing whitespace around arithmetic operator
E201 whitespace after '{'
This commit is contained in:
parent
40e623b276
commit
745b8412f6
|
|
@ -128,9 +128,9 @@ class MemoryUsage:
|
|||
def _send_report(self, rcpts, subject):
|
||||
"""send notification mail with some additional useful info"""
|
||||
stats = self.crawler.stats
|
||||
s = f"Memory usage at engine startup : {stats.get_value('memusage/startup')/1024/1024}M\r\n"
|
||||
s += f"Maximum memory usage : {stats.get_value('memusage/max')/1024/1024}M\r\n"
|
||||
s += f"Current memory usage : {self.get_virtual_size()/1024/1024}M\r\n"
|
||||
s = f"Memory usage at engine startup : {stats.get_value('memusage/startup') / 1024 / 1024}M\r\n"
|
||||
s += f"Maximum memory usage : {stats.get_value('memusage/max') / 1024 / 1024}M\r\n"
|
||||
s += f"Current memory usage : {self.get_virtual_size() / 1024 / 1024}M\r\n"
|
||||
|
||||
s += (
|
||||
"ENGINE STATUS ------------------------------------------------------- \r\n"
|
||||
|
|
|
|||
|
|
@ -524,6 +524,6 @@ class TestHelper(unittest.TestCase):
|
|||
|
||||
def _assert_type_and_value(self, a, b, obj):
|
||||
self.assertTrue(
|
||||
type(a) is type(b), f"Got {type(a)}, expected {type(b)} for { obj!r}"
|
||||
type(a) is type(b), f"Got {type(a)}, expected {type(b)} for {obj!r}"
|
||||
)
|
||||
self.assertEqual(a, b)
|
||||
|
|
|
|||
Loading…
Reference in New Issue