[med-svn] [python-mne] 232/353: lazy import comment
Yaroslav Halchenko
debian at onerussian.com
Fri Nov 27 17:25:04 UTC 2015
This is an automated email from the git hooks/post-receive script.
yoh pushed a commit to tag 0.4
in repository python-mne.
commit ab718962a78edbf7a46c9739de3894f18e570d7f
Author: mluessi at nmr.mgh.harvard.edu <mluessi at nmr.mgh.harvard.edu>
Date: Tue Jun 26 07:53:56 2012 -0400
lazy import comment
---
mne/datasets/sample/__init__.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/mne/datasets/sample/__init__.py b/mne/datasets/sample/__init__.py
index e952e09..c62c2ef 100644
--- a/mne/datasets/sample/__init__.py
+++ b/mne/datasets/sample/__init__.py
@@ -1,10 +1,11 @@
-# Author: Alexandre Gramfort <gramfort at nmr.mgh.harvard.edu>
+# Authors: Alexandre Gramfort <gramfort at nmr.mgh.harvard.edu>
+# Martin Luessi <mluessi at nmr.mgh.harvard.edu>
# License: BSD Style.
def _sample_version(path):
"""Get the version of the Sample dataset"""
- import os.path as op
+ import os.path as op # lazy import so it does not become visible outside
ver_fname = op.join(path, 'version.txt')
if op.exists(ver_fname):
fid = open(ver_fname, 'r')
@@ -29,6 +30,7 @@ def data_path(path='.', force_update=False):
force_update : bool
Force update of the sample dataset even if a local copy exists.
"""
+ # lazy import so things do not become visible outside
import os.path as op
from warnings import warn
from distutils.version import LooseVersion
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/python-mne.git
More information about the debian-med-commit
mailing list