This commit is contained in:
Jing Ling
2020-09-16 00:40:11 +08:00
parent aee53f572f
commit 78a1f14c91
2 changed files with 4 additions and 5 deletions
+1 -2
View File
@@ -202,8 +202,7 @@ class Module(object):
if isinstance(headers, dict): if isinstance(headers, dict):
self.header = headers self.header = headers
return headers return headers
else: return self.header
return self.header
def get_proxy(self, module): def get_proxy(self, module):
""" """
+3 -3
View File
@@ -9,7 +9,7 @@ from uuid import UUID
from collections import OrderedDict from collections import OrderedDict
class Registry(object): class Registry:
_formats = OrderedDict() _formats = OrderedDict()
def register(self, key, format_or_path): def register(self, key, format_or_path):
@@ -47,7 +47,7 @@ Tablib - JSON Support
""" """
class JSONFormat(object): class JSONFormat:
title = 'json' title = 'json'
extensions = ('json',) extensions = ('json',)
@@ -61,7 +61,7 @@ class JSONFormat(object):
""" """
class CSVFormat(object): class CSVFormat:
title = 'csv' title = 'csv'
extensions = ('csv',) extensions = ('csv',)