Revision 13998ef2 lib/bdev.py
b/lib/bdev.py | ||
---|---|---|
780 | 780 |
|
781 | 781 |
""" |
782 | 782 |
try: |
783 |
stat = open(filename, "r") |
|
784 |
try: |
|
785 |
data = stat.read().splitlines() |
|
786 |
finally: |
|
787 |
stat.close() |
|
783 |
data = utils.ReadFile(filename).splitlines() |
|
788 | 784 |
except EnvironmentError, err: |
789 | 785 |
if err.errno == errno.ENOENT: |
790 | 786 |
_ThrowError("The file %s cannot be opened, check if the module" |
Also available in: Unified diff