-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 Fix individual loader import fails
- Loading branch information
Showing
1 changed file
with
19 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,21 @@ | ||
__all__ = [] | ||
|
||
from pystreamapi.loaders.__csv.__csv_loader import csv | ||
from pystreamapi.loaders.__json.__json_loader import json | ||
from pystreamapi.loaders.__xml.__xml_loader import xml | ||
from pystreamapi.loaders.__yaml.__yaml_loader import yaml | ||
|
||
__all__ = [ | ||
'csv', | ||
'json', | ||
'xml', | ||
'yaml' | ||
] | ||
|
||
__all__.append('csv') | ||
__all__.append('json') | ||
|
||
try: | ||
from pystreamapi.loaders.__xml.__xml_loader import xml | ||
|
||
__all__.append('xml') | ||
except ImportError: | ||
... | ||
|
||
try: | ||
from pystreamapi.loaders.__yaml.__yaml_loader import yaml | ||
|
||
__all__.append('yaml') | ||
except ImportError: | ||
... |