diff options
Diffstat (limited to 'nova/pci/devspec.py')
-rw-r--r-- | nova/pci/devspec.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/nova/pci/devspec.py b/nova/pci/devspec.py index 0bbb81b8cf..d76a25ce6a 100644 --- a/nova/pci/devspec.py +++ b/nova/pci/devspec.py @@ -15,8 +15,6 @@ import abc import re import string -import six - from nova import exception from nova.i18n import _ from nova.pci import utils @@ -204,7 +202,7 @@ class WhitelistPciAddress(object): def _init_address_fields(self, pci_addr): if not self.is_physical_function: - if isinstance(pci_addr, six.string_types): + if isinstance(pci_addr, str): self.pci_address_spec = PciAddressGlobSpec(pci_addr) elif isinstance(pci_addr, dict): self.pci_address_spec = PciAddressRegexSpec(pci_addr) |