Skip to content

Commit f528dda

Browse files
committed
part4 python flake8 fix
Signed-off-by: hwassman <[email protected]>
1 parent 965b4e7 commit f528dda

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

source/confParser.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -118,15 +118,6 @@ def merge_defaults_and_args(defaults, args):
118118
return brConfig
119119

120120

121-
#class Singleton(type):
122-
# _inst = {}
123-
124-
# def __call__(clazz, *args, **kwargs):
125-
# if clazz not in clazz._inst:
126-
# clazz._inst[clazz] = super(Singleton, clazz).__call__(*args, **kwargs)
127-
# return clazz._inst[clazz]
128-
129-
130121
class ConfigManager(object, metaclass=Singleton):
131122
''' A singleton class managing the application configuration defaults '''
132123

source/prometheus.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
'''
2222

2323
import cherrypy
24-
import copy
2524
import json
2625
from messages import MSG
2726
from typing import Optional
@@ -113,7 +112,7 @@ def initialize_cache_collectors(self):
113112
frequency=collector.period,
114113
name=thread_name).subscribe()
115114

116-
def build_collector(self, sensor) -> SensorCollector :
115+
def build_collector(self, sensor) -> SensorCollector:
117116

118117
period = self.md.getSensorPeriod(sensor)
119118
if period < 1:

0 commit comments

Comments
 (0)