Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
# Copyright (c) 2014, Facebook, Inc. All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. An additional grant # of patent rights can be found in the PATENTS file in the same directory. #
def tmpdir(*args, **kwargs): """Create a NamedTemporaryDirectory "as" the str path"""
"""Temporarily add `path` to the PYTHONPATH. Not thread-safe.
If `index` is None, append to the end, otherwise, use `index` as specified to `list.insert()`""" else: finally:
def chdir(path): """Temporarily chdir to `path`. Not thread-safe.""" finally:
def module_snapshot(): """Removes any new modules from the module cache after context exit""" finally: |