]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
pylint cleanups
authorMark Andrews <marka@isc.org>
Wed, 29 Apr 2020 04:33:10 +0000 (14:33 +1000)
committerMark Andrews <marka@isc.org>
Thu, 30 Apr 2020 07:38:04 +0000 (17:38 +1000)
(cherry picked from commit d7618f69541d69a43ddf6409493b3b3bd937b434)

util/parse_tsan.py

index c96167a67528bcce726bca824d09672f9704a478..4a69151dd13e7dbcfafbbd281c5b4fa60f8af144 100755 (executable)
@@ -80,14 +80,14 @@ with open(sys.argv[1], "r", encoding='utf-8') as f:
             if not S.inside:
                 S.inside = True
             else:
-                dname = sha256(S.last_line.encode('utf-8')).hexdigest()
-                dname = os.path.join(OUT, dname)
-                if not os.path.isdir(dname):
-                    os.mkdir(dname)
-                fname = sha256(S.block.encode('utf-8')).hexdigest() + ".tsan"
-                fname = os.path.join(dname, fname)
-                if not os.path.isfile(fname):
-                    with open(fname, "w", encoding='utf-8') as w:
+                DNAME = sha256(S.last_line.encode('utf-8')).hexdigest()
+                DNAME = os.path.join(OUT, DNAME)
+                if not os.path.isdir(DNAME):
+                    os.mkdir(DNAME)
+                FNAME = sha256(S.block.encode('utf-8')).hexdigest() + ".tsan"
+                FNAME = os.path.join(DNAME, FNAME)
+                if not os.path.isfile(FNAME):
+                    with open(FNAME, "w", encoding='utf-8') as w:
                         w.write(S.block)
                 S.reset()
         else: