From 7d3a5c1e977b260cefa3d080a752a5fd12119836 Mon Sep 17 00:00:00 2001 From: ed Date: Sun, 3 Aug 2025 21:35:52 +0000 Subject: [PATCH] black --- bin/u2c.py | 2 +- copyparty/tcpsrv.py | 2 +- copyparty/th_srv.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/u2c.py b/bin/u2c.py index 85298730..e92c1e4e 100755 --- a/bin/u2c.py +++ b/bin/u2c.py @@ -52,7 +52,7 @@ if PY2: sys.dont_write_bytecode = True bytes = str - files_decoder = lambda s: unicode(s, 'utf8') + files_decoder = lambda s: unicode(s, "utf8") else: from urllib.parse import quote_from_bytes as quote from urllib.parse import unquote_to_bytes as unquote diff --git a/copyparty/tcpsrv.py b/copyparty/tcpsrv.py index b0f9391e..53388c5e 100644 --- a/copyparty/tcpsrv.py +++ b/copyparty/tcpsrv.py @@ -583,7 +583,7 @@ class TcpSrv(object): if not ip: return "" - hip = "[%s]" % (ip,) if ":" in ip else ip + hip = "[%s]" % (ip,) if ":" in ip else ip if self.args.http_only: https = "" diff --git a/copyparty/th_srv.py b/copyparty/th_srv.py index f40d0a43..7b07376a 100644 --- a/copyparty/th_srv.py +++ b/copyparty/th_srv.py @@ -846,7 +846,7 @@ class ThumbSrv(object): tags, rawtags = ffprobe(abspath, int(vn.flags["convt"] / 2)) if "ac" not in tags: raise Exception("not audio") - + bits = tags[".bps"][1] if bits == 0.0: bits = tags[".bprs"][1]