summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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__: