mirror of
https://github.com/shmilylty/OneForAll.git
synced 2026-10-24 16:46:14 +08:00
typos
This commit is contained in:
@@ -202,7 +202,6 @@ 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):
|
||||||
|
|||||||
@@ -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',)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user