[CRIU] [PATCH 4/6] p.haul: remove E301 linter warning from ignore list

Nikita Spiridonov nspiridonov at odin.com
Mon Nov 9 07:40:24 PST 2015


Remove E301 linter warning (expected 1 blank line, found 0) from
ignore list.

Signed-off-by: Nikita Spiridonov <nspiridonov at odin.com>
---
 phaul/p_haul_docker.py |    1 +
 phaul/p_haul_pid.py    |    1 +
 test/flake8.cfg        |    3 +--
 3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/phaul/p_haul_docker.py b/phaul/p_haul_docker.py
index a78f6e9..1259c5c 100644
--- a/phaul/p_haul_docker.py
+++ b/phaul/p_haul_docker.py
@@ -101,6 +101,7 @@ class p_haul_type:
 			stdout = logf, stderr = logf)
 		if ret != 0:
 			raise Exception("docker checkpoint failed")
+
 	#
 	# Meta-images for docker -- /var/run/docker
 	#
diff --git a/phaul/p_haul_pid.py b/phaul/p_haul_pid.py
index c445bd2..55f85da 100644
--- a/phaul/p_haul_pid.py
+++ b/phaul/p_haul_pid.py
@@ -16,6 +16,7 @@ class p_haul_type:
 	#
 	def init_src(self):
 		pass
+
 	def init_dst(self):
 		pass
 
diff --git a/test/flake8.cfg b/test/flake8.cfg
index 28eb8fd..a88807c 100644
--- a/test/flake8.cfg
+++ b/test/flake8.cfg
@@ -4,6 +4,5 @@
 # E302 expected 2 blank lines, found 1
 # E501 line too long
 # E251 unexpected spaces around keyword / parameter equals
-# E301 expected 1 blank line, found 0
 # E101 indentation contains mixed spaces and tabs
-ignore = W191,E128,E302,E501,E251,E301,E101
+ignore = W191,E128,E302,E501,E251,E101
-- 
1.7.1



More information about the CRIU mailing list