summaryrefslogtreecommitdiff
path: root/dealconvert/__init__.py
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2019-07-08 22:55:21 +0200
committeremkael <emkael@tlen.pl>2019-07-08 22:55:21 +0200
commit1dcac17da449fab9993523eb8bfe69ca73bcc726 (patch)
treea59805f42629051c89d562d09177cf5e6588e7dc /dealconvert/__init__.py
parenta0644da194f61f627535e6b72c7a6e761986498d (diff)
Compatibility with interface renamed for API purposes
Fixes #2
Diffstat (limited to 'dealconvert/__init__.py')
-rw-r--r--dealconvert/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/dealconvert/__init__.py b/dealconvert/__init__.py
index 3b5a8ba..56d28da 100644
--- a/dealconvert/__init__.py
+++ b/dealconvert/__init__.py
@@ -5,12 +5,12 @@ class DealConverter(object):
self.input = input_file
self.formats = {}
if input_file is not None:
- self.parser = self._detect_format(self.input)
+ self.parser = self.detect_format(self.input)
def output(self, output_files):
deal_set = sorted(self.parser.parse(self.input), key=lambda d:d.number)
for output in output_files:
- self._detect_format(output).output(output, deal_set)
+ self.detect_format(output).output(output, deal_set)
def detect_format(self, filename):
for deal_format in globals()['formats'].__all__: