Skip to content

Instantly share code, notes, and snippets.

@claudep
Created August 17, 2015 18:09
Show Gist options
  • Save claudep/455819983e3eb63649ca to your computer and use it in GitHub Desktop.
Save claudep/455819983e3eb63649ca to your computer and use it in GitHub Desktop.
Removed some imports
diff --git a/translate/storage/placeables/__init__.py b/translate/storage/placeables/__init__.py
index fd062c5..094e513 100644
--- a/translate/storage/placeables/__init__.py
+++ b/translate/storage/placeables/__init__.py
@@ -45,16 +45,6 @@ The placeables model follows the XLIFF standard's list of placeables.
Please refer to the XLIFF specification to get a better understanding.
"""
-from . import base
-from . import interfaces
-from . import general
-from . import xliff
from .base import *
-from .base import __all__ as all_your_base
from .strelem import StringElem
from .parse import parse
-
-
-__all__ = [
- 'base', 'interfaces', 'general', 'parse', 'StringElem', 'xliff'
-] + all_your_base
diff --git a/translate/storage/placeables/base.py b/translate/storage/placeables/base.py
index f0a9fcd..9818d7c 100644
--- a/translate/storage/placeables/base.py
+++ b/translate/storage/placeables/base.py
@@ -23,14 +23,11 @@ Contains base placeable classes with names based on XLIFF placeables. See the
XLIFF standard for more information about what the names mean.
"""
-from translate.storage.placeables.interfaces import *
-from translate.storage.placeables.strelem import StringElem
-
-
-__all__ = [
- 'Bpt', 'Ept', 'Ph', 'It', 'G', 'Bx',
- 'Ex', 'X', 'Sub', 'to_base_placeables'
-]
+from .interfaces import (
+ Delimiter, MaskingPlaceable, PairedDelimiter, ReplacementPlaceable,
+ SubflowPlaceable
+)
+from .strelem import StringElem
# Basic placeable types.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment