MCPcopy Create free account
hub / github.com/wal-e/wal-e / read

Function read

setup.py:23–25  ·  view source on GitHub ↗
(fname)

Source from the content-addressed store, hash-verified

21
22# Utility function to read the contents of short files.
23def read(fname):
24 with open(os.path.join(os.path.dirname(__file__), fname)) as f:
25 return f.read()
26
27
28VERSION = read(os.path.join('wal_e', 'VERSION')).strip()

Callers 1

setup.pyFile · 0.85

Calls 2

joinMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected