Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
snf-ganeti
Commits
69efe319
Commit
69efe319
authored
Feb 26, 2009
by
Michael Hanselmann
Browse files
Fix typos in utils.WriteFile's docstring
Reviewed-by: iustinp
parent
b33b6f55
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/utils.py
View file @
69efe319
...
...
@@ -1215,7 +1215,7 @@ def WriteFile(file_name, fn=None, data=None,
mtime/atime of the file.
If the function doesn't raise an exception, it has succeeded and the
target file has the new contents. If the f
ile
has raised an
target file has the new contents. If the f
unction
has raised an
exception, an existing target file should be unmodified and the
temporary file should be removed.
...
...
@@ -1224,7 +1224,7 @@ def WriteFile(file_name, fn=None, data=None,
@type fn: callable
@param fn: content writing function, called with
file descriptor as parameter
@type data: sr
@type data: s
t
r
@param data: contents of the file
@type mode: int
@param mode: file mode
...
...
@@ -1247,7 +1247,7 @@ def WriteFile(file_name, fn=None, data=None,
@return: None if the 'close' parameter evaluates to True,
otherwise the file descriptor
@raise errors.ProgrammerError: if an of the arguments are not valid
@raise errors.ProgrammerError: if an
y
of the arguments are not valid
"""
if
not
os
.
path
.
isabs
(
file_name
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment