pull/18/head
Yax 11 months ago
parent e2664310f3
commit 9f1a408a7a

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
import sqlite3

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
import sqlite3

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
# pylint: disable=singleton-comparison

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
from dataclasses import dataclass

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
from dataclasses import dataclass

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
import argparse

@ -35,12 +35,13 @@ class Config:
def load(self, config_pathname):
self._cfg.read(config_pathname)
def _split_key(self, key: ConfigParameter):
@staticmethod
def _split_key(key: ConfigParameter):
section, param = str(key.value).split(".")
if not param:
param = section
section = ""
return (section, param)
return section, param
def exists(self, key: ConfigParameter):
section, param = self._split_key(key)
@ -77,8 +78,8 @@ class Config:
def check(self):
for key in ConfigParameter:
if not self.get(key):
return (False, key.value)
return (True, None)
return False, key.value
return True, None
def __repr__(self):
dict_repr = {}

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
from datetime import datetime

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
import json

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
import pytest

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
import time

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
import logging

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
import pytest

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
from stacosys.service import rss

Loading…
Cancel
Save