Python shutil._ARCHIVE_FORMATS Examples

The following are 10 code examples for showing how to use shutil._ARCHIVE_FORMATS(). These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example.

You may check out the related API usage on the sidebar.

You may also want to check out all available functions/classes of the module shutil , or try the search function .

Example 1
Project: jawfish   Author: war-and-code   File: regrtest.py    License: MIT License 5 votes vote down vote up
def get_shutil_archive_formats(self):
        # we could call get_archives_formats() but that only returns the
        # registry keys; we want to check the values too (the functions that
        # are registered)
        return shutil._ARCHIVE_FORMATS, shutil._ARCHIVE_FORMATS.copy() 
Example 2
Project: jawfish   Author: war-and-code   File: regrtest.py    License: MIT License 5 votes vote down vote up
def restore_shutil_archive_formats(self, saved):
        shutil._ARCHIVE_FORMATS = saved[0]
        shutil._ARCHIVE_FORMATS.clear()
        shutil._ARCHIVE_FORMATS.update(saved[1]) 
Example 3
Project: Fluid-Designer   Author: Microvellum   File: regrtest.py    License: GNU General Public License v3.0 5 votes vote down vote up
def get_shutil_archive_formats(self):
        # we could call get_archives_formats() but that only returns the
        # registry keys; we want to check the values too (the functions that
        # are registered)
        return shutil._ARCHIVE_FORMATS, shutil._ARCHIVE_FORMATS.copy() 
Example 4
Project: Fluid-Designer   Author: Microvellum   File: regrtest.py    License: GNU General Public License v3.0 5 votes vote down vote up
def restore_shutil_archive_formats(self, saved):
        shutil._ARCHIVE_FORMATS = saved[0]
        shutil._ARCHIVE_FORMATS.clear()
        shutil._ARCHIVE_FORMATS.update(saved[1]) 
Example 5
Project: ironpython3   Author: IronLanguages   File: regrtest.py    License: Apache License 2.0 5 votes vote down vote up
def get_shutil_archive_formats(self):
        # we could call get_archives_formats() but that only returns the
        # registry keys; we want to check the values too (the functions that
        # are registered)
        return shutil._ARCHIVE_FORMATS, shutil._ARCHIVE_FORMATS.copy() 
Example 6
Project: ironpython3   Author: IronLanguages   File: regrtest.py    License: Apache License 2.0 5 votes vote down vote up
def restore_shutil_archive_formats(self, saved):
        shutil._ARCHIVE_FORMATS = saved[0]
        shutil._ARCHIVE_FORMATS.clear()
        shutil._ARCHIVE_FORMATS.update(saved[1]) 
Example 7
Project: Project-New-Reign---Nemesis-Main   Author: ShikyoKira   File: regrtest.py    License: GNU General Public License v3.0 5 votes vote down vote up
def get_shutil_archive_formats(self):
        # we could call get_archives_formats() but that only returns the
        # registry keys; we want to check the values too (the functions that
        # are registered)
        return shutil._ARCHIVE_FORMATS, shutil._ARCHIVE_FORMATS.copy() 
Example 8
Project: Project-New-Reign---Nemesis-Main   Author: ShikyoKira   File: regrtest.py    License: GNU General Public License v3.0 5 votes vote down vote up
def restore_shutil_archive_formats(self, saved):
        shutil._ARCHIVE_FORMATS = saved[0]
        shutil._ARCHIVE_FORMATS.clear()
        shutil._ARCHIVE_FORMATS.update(saved[1]) 
Example 9
Project: android_universal   Author: bkerler   File: save_env.py    License: MIT License 5 votes vote down vote up
def get_shutil_archive_formats(self):
        # we could call get_archives_formats() but that only returns the
        # registry keys; we want to check the values too (the functions that
        # are registered)
        return shutil._ARCHIVE_FORMATS, shutil._ARCHIVE_FORMATS.copy() 
Example 10
Project: android_universal   Author: bkerler   File: save_env.py    License: MIT License 5 votes vote down vote up
def restore_shutil_archive_formats(self, saved):
        shutil._ARCHIVE_FORMATS = saved[0]
        shutil._ARCHIVE_FORMATS.clear()
        shutil._ARCHIVE_FORMATS.update(saved[1])