Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(228)

Unified Diff: tools/telemetry/third_party/pyfakefs/pyfakefs/example.py

Issue 1313163007: [Telemetry] Update pyfakefs to latest revision. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync to 7e8e097c0165ba9d51fa9d34a0888d8ec082d15b Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tools/telemetry/third_party/pyfakefs/pyfakefs/example.py
diff --git a/tools/telemetry/third_party/pyfakefs/pyfakefs/example.py b/tools/telemetry/third_party/pyfakefs/pyfakefs/example.py
index f71402e2b4e37f38f8a2aff3efb78c64a090a413..436e4cf2b8b0c19be3462e0e5c4a12aac7ce1000 100644
--- a/tools/telemetry/third_party/pyfakefs/pyfakefs/example.py
+++ b/tools/telemetry/third_party/pyfakefs/pyfakefs/example.py
@@ -29,12 +29,13 @@ The modules related to file handling are bound to the respective fake modules:
>>> shutil #doctest: +ELLIPSIS
<fake_filesystem_shutil.FakeShutilModule object...>
-The `file()` and `open()` built-ins are bound to the fake `open()`:
+The `open()` built-in is bound to the fake `open()`:
->>> file #doctest: +ELLIPSIS
-<fake_filesystem.FakeFileOpen object...>
>>> open #doctest: +ELLIPSIS
<fake_filesystem.FakeFileOpen object...>
+
+In Python 2 the `file()` built-in is also bound to the fake `open()`. `file()`
+was eliminated in Python 3.
"""
import os
« no previous file with comments | « tools/telemetry/third_party/pyfakefs/pyfakefs/COPYING ('k') | tools/telemetry/third_party/pyfakefs/pyfakefs/example_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698