mirror of
https://github.com/openSUSE/osc.git
synced 2025-09-07 13:48:43 +02:00
Modernize code with pyupgrade
pyupgrade --keep-percent-format --py36-plus `find -name '*.py'`
This commit is contained in:
@@ -135,7 +135,7 @@ def run(prg, argv=None):
|
||||
if 'tlsv1' in str(e):
|
||||
print('The python on this system or the server does not support TLSv1.2', file=sys.stderr)
|
||||
print("SSL Error:", e, file=sys.stderr)
|
||||
except IOError as e:
|
||||
except OSError as e:
|
||||
# ignore broken pipe
|
||||
if e.errno != errno.EPIPE:
|
||||
raise
|
||||
|
Reference in New Issue
Block a user