mirror of https://github.com/python/cpython.git
Issue #3732: Backported r53335 to supress deprecation warning.
Reviewed by Benjamin Peterson.
This commit is contained in:
parent
17f03ca962
commit
f7dd75f484
|
@ -2,7 +2,7 @@
|
|||
# Copyright (C) 2005 Martin v. Löwis
|
||||
# Licensed to PSF under a Contributor Agreement.
|
||||
from _msi import *
|
||||
import sets, os, string, re
|
||||
import os, string, re
|
||||
|
||||
Win64=0
|
||||
|
||||
|
@ -184,7 +184,7 @@ class CAB:
|
|||
def __init__(self, name):
|
||||
self.name = name
|
||||
self.files = []
|
||||
self.filenames = sets.Set()
|
||||
self.filenames = set()
|
||||
self.index = 0
|
||||
|
||||
def gen_id(self, file):
|
||||
|
@ -215,7 +215,7 @@ def commit(self, db):
|
|||
os.unlink(filename)
|
||||
db.Commit()
|
||||
|
||||
_directories = sets.Set()
|
||||
_directories = set()
|
||||
class Directory:
|
||||
def __init__(self, db, cab, basedir, physical, _logical, default, componentflags=None):
|
||||
"""Create a new directory in the Directory table. There is a current component
|
||||
|
@ -239,8 +239,8 @@ def __init__(self, db, cab, basedir, physical, _logical, default, componentflags
|
|||
self.physical = physical
|
||||
self.logical = logical
|
||||
self.component = None
|
||||
self.short_names = sets.Set()
|
||||
self.ids = sets.Set()
|
||||
self.short_names = set()
|
||||
self.ids = set()
|
||||
self.keyfiles = {}
|
||||
self.componentflags = componentflags
|
||||
if basedir:
|
||||
|
|
Loading…
Reference in New Issue