Skip to content

Commit f89a7ec

Browse files
committed
prune
1 parent 3891af8 commit f89a7ec

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

pytorch_lightning/__init__.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,5 @@
7272
'metrics',
7373
]
7474

75-
# necessary for regular bolts imports. Skip exception since bolts is not always installed
76-
try:
77-
from pytorch_lightning import bolts
78-
except ImportError:
79-
pass
80-
# __call__ = __all__
81-
8275
# for compatibility with namespace packages
8376
__import__('pkg_resources').declare_namespace(__name__)

pytorch_lightning/utilities/setup_tools.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ def _parse_for_badge(text: str, path_badges: str = _PATH_BADGES, badge_names: li
6969
'Some text here...
7070
[![PyPI - Python Version](./docs/source/_images/badges/PyPI_Python_Version_badge.png)](https://pypi.org/project/pytorch-lightning/)
7171
and another text later'
72+
>>> import shutil
73+
>>> shutil.rmtree('./docs')
7274
"""
7375
for line in text.split(os.linesep):
7476
badge_name = re.search(r'\[!\[(.*?)]', line)
@@ -157,7 +159,7 @@ def _load_long_description(path_dir):
157159
>>> _load_long_description(PROJECT_ROOT) # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
158160
'<div align="center">...'
159161
>>> import shutil
160-
>>> shutil.rmtree(_PATH_BADGES)
162+
>>> shutil.rmtree('./docs')
161163
"""
162164
# https://github.com/PyTorchLightning/pytorch-lightning/raw/master/docs/source/_images/lightning_module/pt_to_pl.png
163165
url = os.path.join(__homepage__, 'raw', __version__, 'docs')

0 commit comments

Comments
 (0)