summaryrefslogtreecommitdiff
path: root/dealconvert/__init__.py
diff options
context:
space:
mode:
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 56d28da..e25db66 100644
--- a/dealconvert/__init__.py
+++ b/dealconvert/__init__.py
@@ -12,12 +12,12 @@ class DealConverter(object):
for output in output_files:
self.detect_format(output).output(output, deal_set)
- def detect_format(self, filename):
+ def detect_format(self, filename, interactive=True):
for deal_format in globals()['formats'].__all__:
if deal_format not in self.formats:
self.formats[deal_format] = getattr(
globals()[deal_format],
- deal_format.upper() + 'Format')()
+ deal_format.upper() + 'Format')(interactive)
if self.formats[deal_format].match_file(filename):
return self.formats[deal_format]
raise RuntimeError('Unrecognized file extension: %s' % filename)