Skip to content
Snippets Groups Projects
Commit a0227e07 authored by Valentin Lorentz's avatar Valentin Lorentz
Browse files

Remove dead code.

parent d6a11de3
No related branches found
No related tags found
No related merge requests found
...@@ -31,23 +31,4 @@ class Config: ...@@ -31,23 +31,4 @@ class Config:
'environment variable $%s.' % 'environment variable $%s.' %
cls.config_path_variable) cls.config_path_variable)
return path return path
class CoreConfig(Config):
__slots__ = ('modules', 'nb_passes')
config_path_variable = 'PPP_CORE_CONFIG'
def parse_config(self, data):
self.modules = self._parse_modules(data.get('modules', {}))
self.debug = data.get('debug', False)
self.nb_passes = data.get('recursion', {}).get('max_passes', 10)
def _parse_modules(self, data):
modules = []
for config in data:
if 'name' not in config:
raise InvalidConfig('Module %r has no name' % config)
if 'url' not in config:
raise InvalidConfig('Module %s has no set URL.' %
config['name'])
modules.append(Module(**config))
return modules
...@@ -4,7 +4,7 @@ from setuptools import setup, find_packages ...@@ -4,7 +4,7 @@ from setuptools import setup, find_packages
setup( setup(
name='ppp_libmodule', name='ppp_libmodule',
version='0.7', version='0.7.1',
description='Library for writing Python modules for the PPP.', description='Library for writing Python modules for the PPP.',
url='https://github.com/ProjetPP/PPP-libmodule-Python', url='https://github.com/ProjetPP/PPP-libmodule-Python',
author='Valentin Lorentz', author='Valentin Lorentz',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment