1API Notes 2========= 3 4With ``pyfakefs 3.4``, the public API has changed to be PEP-8 conform. 5The old API is deprecated, and will be removed in some future version of 6pyfakefs. 7You can suppress the deprecation warnings for legacy code with the following 8code: 9 10.. code:: python 11 12 from pyfakefs.deprecator import Deprecator 13 14 Deprecator.show_warnings = False 15 16Here is a list of selected changes: 17 18:pyfakefs.fake_filesystem.FakeFileSystem: 19 20 CreateFile() -> create_file() 21 22 CreateDirectory() -> create_dir() 23 24 CreateLink() -> create_symlink() 25 26 GetDiskUsage() -> get_disk_usage() 27 28 SetDiskUsage() -> set_disk_usage() 29 30:pyfakefs.fake_filesystem.FakeFile: 31 32 GetSize(), SetSize() -> size (property) 33 34 SetContents() -> set_contents() 35 36 SetATime() -> st_atime (property) 37 38 SetMTime() -> st_mtime (property) 39 40 SetCTime() -> st_ctime (property) 41