]> git.armaanb.net Git - lightcards.git/blobdiff - lightcards/progress.py
Reformat using Black
[lightcards.git] / lightcards / progress.py
index 665ae315485cba08b742073af68e188608f031d3..6fd3f3c2d68d1b7affc073d7c4ce861860a0fa81 100644 (file)
@@ -9,10 +9,11 @@ import shutil
 global dired
 dired = f"{os.path.expanduser('~')}/.cache/lightcards/"
 
+
 def name_gen(stra):
     hasher = hashlib.md5()
     hasher.update(str(stra).encode("utf-8"))
-    return(hasher.hexdigest())
+    return hasher.hexdigest()
 
 
 def make_dirs(dired):
@@ -44,7 +45,3 @@ def purge(stra):
 def purge_all():
     if os.path.exists(dired):
         shutil.rmtree(dired)
-
-
-if __name__ == "__main__":
-    main()