Browse Source

Fix PEP8 errors (E305)

Since flake8 3.2.0 is released [0] it also checks
E305 rule: 2 blank lines are expected after class
or function definition.

[0] http://flake8.pycqa.org/en/latest/release-notes/3.2.0.html

Change-Id: I0f4074efefefbd0b510b841625be18ea2f14bded
Artem Panchenko 2 years ago
parent
commit
39dbbf5f56
2 changed files with 4 additions and 0 deletions
  1. 2
    0
      fuel_ccp_tests/helpers/ext.py
  2. 2
    0
      fuel_ccp_tests/logger.py

+ 2
- 0
fuel_ccp_tests/helpers/ext.py View File

@@ -23,6 +23,7 @@ def enum(*values, **kwargs):
23 23
         return collections.namedtuple('Enum', names)(*values)
24 24
     return collections.namedtuple('Enum', values)(*values)
25 25
 
26
+
26 27
 NODE_ROLE = enum(
27 28
     'master',
28 29
     'slave',
@@ -85,6 +86,7 @@ class HttpCodes(enumerate):
85 86
 class Namespace(enumerate):
86 87
     BASE_NAMESPACE = 'ccp'
87 88
 
89
+
88 90
 DEFAULT_REPOS = ['fuel-ccp-debian-base',
89 91
                  'fuel-ccp-entrypoint',
90 92
                  'fuel-ccp-etcd',

+ 2
- 0
fuel_ccp_tests/logger.py View File

@@ -42,6 +42,7 @@ class NoDebugMessageFilter(logging.Filter):
42 42
     def filter(self, record):
43 43
         return not record.levelno <= logging.DEBUG
44 44
 
45
+
45 46
 logging.getLogger('paramiko.transport').addFilter(NoDebugMessageFilter())
46 47
 logging.getLogger('paramiko.hostkeys').addFilter(NoDebugMessageFilter())
47 48
 logging.getLogger('iso8601.iso8601').addFilter(NoDebugMessageFilter())
@@ -70,4 +71,5 @@ def debug(logger):
70 71
         return wrapped
71 72
     return wrapper
72 73
 
74
+
73 75
 logwrap = debug(logger)

Loading…
Cancel
Save