Skip to content

Instantly share code, notes, and snippets.

@anchitjain1234
Created February 18, 2016 07:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anchitjain1234/154b993e4614b7e8a791 to your computer and use it in GitHub Desktop.
Save anchitjain1234/154b993e4614b7e8a791 to your computer and use it in GitHub Desktop.
Output of git grep -n get_readable_fileobj
io/ascii/core.py:30:from ...utils.data import get_readable_fileobj
io/ascii/core.py:182: with get_readable_fileobj(table) as file_obj:
io/ascii/cparser.pyx:17:from ...utils.data import get_readable_fileobj
io/ascii/cparser.pyx:280: with get_readable_fileobj(source) as file_obj:
io/ascii/ui.py:33:from ...utils.data import get_readable_fileobj
io/ascii/ui.py:286: with get_readable_fileobj(table) as fileobj:
io/registry.py:323: from ..utils.data import get_readable_fileobj
io/registry.py:330: ctx = get_readable_fileobj(args[0], encoding='binary')
io/votable/table.py:237: with data.get_readable_fileobj(source, encoding='binary') as fd:
utils/data.py:33: 'Conf', 'conf', 'get_readable_fileobj', 'get_file_contents',
utils/data.py:106:def get_readable_fileobj(name_or_obj, encoding=None, cache=False,
utils/data.py:122: with get_readable_fileobj('file.dat') as f:
utils/data.py:362: See the `get_readable_fileobj` docstring for details on parameters.
utils/data.py:370: with get_readable_fileobj(*args, **kwargs) as f:
utils/data.py:483: return get_readable_fileobj(datafn, encoding=encoding)
utils/data.py:485: return get_readable_fileobj(conf.dataurl + datafn, encoding=encoding,
utils/data.py:800: with get_readable_fileobj(fn, encoding=encoding) as fd:
utils/tests/test_data.py:21: get_pkg_data_filename, get_readable_fileobj)
utils/tests/test_data.py:85: from ..data import get_readable_fileobj
utils/tests/test_data.py:87: with get_readable_fileobj(TESTURL, cache=False, encoding='utf-8') as page:
utils/tests/test_data.py:93: from ..data import get_readable_fileobj, get_pkg_data_filename, clear_download_cache
utils/tests/test_data.py:95: with get_readable_fileobj(TESTURL, encoding="binary", cache=True) as page:
utils/tests/test_data.py:326: from ..data import get_readable_fileobj
utils/tests/test_data.py:349: with get_readable_fileobj(stream, encoding='binary') as f:
utils/tests/test_data.py:387:def test_get_readable_fileobj_cleans_up_temporary_files(tmpdir, monkeypatch):
utils/tests/test_data.py:388: """checks that get_readable_fileobj leaves no temporary files behind"""
utils/tests/test_data.py:396: # Call get_readable_fileobj() as a context manager
utils/tests/test_data.py:397: with get_readable_fileobj(url) as fileobj:
utils/tests/test_data.py:403: # Assert that the temporary file was empty after get_readable_fileobj()
utils/tests/test_data.py:408:def test_path_objects_get_readable_fileobj():
utils/tests/test_data.py:410: with get_readable_fileobj(fpath) as f:
utils/xml/iterparser.py:36: `astropy.utils.misc.get_readable_fileobj`.
utils/xml/iterparser.py:66: with data.get_readable_fileobj(fd, encoding='binary') as new_fd:
utils/xml/iterparser.py:219: with data.get_readable_fileobj(source, encoding=encoding) as input:
vo/client/vos_catalog.py:27:from ...utils.data import get_readable_fileobj
vo/client/vos_catalog.py:497: :func:`~astropy.utils.data.get_readable_fileobj`.
vo/client/vos_catalog.py:505: with get_readable_fileobj(filename, **kwargs) as fd:
vo/client/vos_catalog.py:532: :func:`~astropy.utils.data.get_readable_fileobj`.
vo/client/vos_catalog.py:547: with get_readable_fileobj(registry_url, **kwargs) as fd:
vo/client/vos_catalog.py:700: with get_readable_fileobj(parsed_url, encoding='binary',
vo/samp/lockfile_helpers.py:24:from ...utils.data import get_readable_fileobj
vo/samp/lockfile_helpers.py:41: # get_readable_fileobj takes care of this.
vo/samp/lockfile_helpers.py:43: with get_readable_fileobj(lockfilename) as f:
vo/samp/tests/test_web_profile.py:14:from ....utils.data import get_readable_fileobj
vo/samp/tests/test_web_profile.py:74: with get_readable_fileobj('http://localhost:{0}/crossdomain.xml'.format(self.hub._web_port)) as f:
vo/samp/tests/test_web_profile.py:77: with get_readable_fileobj('http://localhost:{0}/clientaccesspolicy.xml'.format(self.hub._web_port)) as f:
vo/validator/tstquery.py:23:from ...utils.data import get_readable_fileobj
vo/validator/tstquery.py:46: with get_readable_fileobj(url, encoding='binary',
vo/validator/tstquery.py:53: with get_readable_fileobj(backup_url, encoding='binary',
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment