Use pyupgrade with --py36-plus param.

This commit is contained in:
grossmj
2021-04-13 18:37:58 +09:30
parent a9eb035b7d
commit f928738bd5
235 changed files with 1501 additions and 1638 deletions

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
#
# Copyright (C) 2013 GNS3 Technologies Inc.
#
@ -38,7 +37,7 @@ class NIOLinuxEthernet(NIO):
def __init__(self, hypervisor, ethernet_device):
# create an unique name
name = 'linux_ethernet-{}'.format(uuid.uuid4())
name = f'linux_ethernet-{uuid.uuid4()}'
self._ethernet_device = ethernet_device
super().__init__(name, hypervisor)