Your IP : 216.73.216.213
B
��\a � @ s2 d Z ddlZyddlmZ W n ek
r< ddlmZ Y nX ddlZddl Z ddl
Z
ddlmZ ddl
mZmZmZ ddlmZ ddlmZmZ d d
� Zdd� Zd
d� Zdd� ZG dd� dej�Ze� ZG dd� dej�ZG dd� de�ZG dd� de�Z G dd� dej!�Z"G dd� de#�Z$G dd� de#�Z%dS )a� A fake implementation for pathlib working with FakeFilesystem.
New in pyfakefs 3.0.
Usage:
* With fake_filesystem_unittest:
If using fake_filesystem_unittest.TestCase, pathlib gets replaced
by fake_pathlib together with other file system related modules.
* Stand-alone with FakeFilesystem:
`filesystem = fake_filesystem.FakeFilesystem()`
`fake_pathlib_module = fake_filesystem.FakePathlibModule(filesystem)`
`path = fake_pathlib_module.Path('/foo/bar')`
Note: as the implementation is based on FakeFilesystem, all faked classes
(including PurePosixPath, PosixPath, PureWindowsPath and WindowsPath)
get the properties of the underlying fake filesystem.
� N)�quote_from_bytes)�quote)�fake_scandir)�use_scandir�pathlib�pathlib2)� text_type)�FakeFileOpen�FakeFilesystemc C s"