当前位置: 首页>>代码示例>>Python>>正文


Python zipfile.ZIP64_LIMIT属性代码示例

本文整理汇总了Python中zipfile.ZIP64_LIMIT属性的典型用法代码示例。如果您正苦于以下问题:Python zipfile.ZIP64_LIMIT属性的具体用法?Python zipfile.ZIP64_LIMIT怎么用?Python zipfile.ZIP64_LIMIT使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在模块zipfile的用法示例。

在下文中一共展示了zipfile.ZIP64_LIMIT属性的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。

示例1: setUp

# 需要导入模块: import zipfile [as 别名]
# 或者: from zipfile import ZIP64_LIMIT [as 别名]
def setUp(self):
        self._limit = zipfile.ZIP64_LIMIT
        self._filecount_limit = zipfile.ZIP_FILECOUNT_LIMIT
        zipfile.ZIP64_LIMIT = 1000
        zipfile.ZIP_FILECOUNT_LIMIT = 9

        line_gen = ("Test of zipfile line %d." % i
                    for i in range(0, FIXEDTEST_SIZE))
        self.data = '\n'.join(line_gen)

        # Make a source file with some lines
        with open(TESTFN, "wb") as fp:
            fp.write(self.data) 
开发者ID:IronLanguages,项目名称:ironpython2,代码行数:15,代码来源:test_zipfile.py


示例2: tearDown

# 需要导入模块: import zipfile [as 别名]
# 或者: from zipfile import ZIP64_LIMIT [as 别名]
def tearDown(self):
        zipfile.ZIP64_LIMIT = self._limit
        zipfile.ZIP_FILECOUNT_LIMIT = self._filecount_limit
        unlink(TESTFN)
        unlink(TESTFN2) 
开发者ID:IronLanguages,项目名称:ironpython2,代码行数:7,代码来源:test_zipfile.py


示例3: setUp

# 需要导入模块: import zipfile [as 别名]
# 或者: from zipfile import ZIP64_LIMIT [as 别名]
def setUp(self):
        self._limit = zipfile.ZIP64_LIMIT
        zipfile.ZIP64_LIMIT = 5

        line_gen = ("Test of zipfile line %d." % i
                    for i in range(0, FIXEDTEST_SIZE))
        self.data = '\n'.join(line_gen)

        # Make a source file with some lines
        with open(TESTFN, "wb") as fp:
            fp.write(self.data) 
开发者ID:dxwu,项目名称:BinderFilter,代码行数:13,代码来源:test_zipfile.py


示例4: tearDown

# 需要导入模块: import zipfile [as 别名]
# 或者: from zipfile import ZIP64_LIMIT [as 别名]
def tearDown(self):
        zipfile.ZIP64_LIMIT = self._limit
        unlink(TESTFN)
        unlink(TESTFN2) 
开发者ID:dxwu,项目名称:BinderFilter,代码行数:6,代码来源:test_zipfile.py


示例5: setUp

# 需要导入模块: import zipfile [as 别名]
# 或者: from zipfile import ZIP64_LIMIT [as 别名]
def setUp(self):
        self._limit = zipfile.ZIP64_LIMIT
        self._filecount_limit = zipfile.ZIP_FILECOUNT_LIMIT
        zipfile.ZIP64_LIMIT = 1000
        zipfile.ZIP_FILECOUNT_LIMIT = 9

        # Make a source file with some lines
        with open(TESTFN, "wb") as fp:
            fp.write(self.data) 
开发者ID:Microvellum,项目名称:Fluid-Designer,代码行数:11,代码来源:test_zipfile.py


示例6: setUp

# 需要导入模块: import zipfile [as 别名]
# 或者: from zipfile import ZIP64_LIMIT [as 别名]
def setUp(self):
        self._limit = zipfile.ZIP64_LIMIT
        zipfile.ZIP64_LIMIT = 5

        line_gen = ("Test of zipfile line %d." % i for i in range(0, 1000))
        self.data = '\n'.join(line_gen)

        # Make a source file with some lines
        fp = open(TESTFN, "wb")
        fp.write(self.data)
        fp.close() 
开发者ID:ofermend,项目名称:medicare-demo,代码行数:13,代码来源:test_zipfile.py


示例7: tearDown

# 需要导入模块: import zipfile [as 别名]
# 或者: from zipfile import ZIP64_LIMIT [as 别名]
def tearDown(self):
        zipfile.ZIP64_LIMIT = self._limit
        os.remove(TESTFN)
        os.remove(TESTFN2) 
开发者ID:ofermend,项目名称:medicare-demo,代码行数:6,代码来源:test_zipfile.py



注:本文中的zipfile.ZIP64_LIMIT属性示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。