Revision adec726e
b/lib/utils/io.py | ||
---|---|---|
1 | 1 |
# |
2 | 2 |
# |
3 | 3 |
|
4 |
# Copyright (C) 2006, 2007, 2010, 2011, 2012 Google Inc. |
|
4 |
# Copyright (C) 2006, 2007, 2010, 2011, 2012, 2014 Google Inc.
|
|
5 | 5 |
# |
6 | 6 |
# This program is free software; you can redistribute it and/or modify |
7 | 7 |
# it under the terms of the GNU General Public License as published by |
... | ... | |
100 | 100 |
@param preread: Function called before file is read |
101 | 101 |
@rtype: str |
102 | 102 |
@return: the (possibly partial) content of the file |
103 |
@raise IOError: if the file cannot be opened |
|
103 | 104 |
|
104 | 105 |
""" |
105 | 106 |
f = open(file_name, "r") |
Also available in: Unified diff