Skip to content

Commit ced00d8

Browse files
committed
Implement f-string formatting instead of .format() method.
1 parent 2d34fc1 commit ced00d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

BruteForce.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,4 @@ def testFunction(password):
8282
password, attempts = findPassword(chars, testFunction, show=1000, format_=" Trying %s")
8383

8484
t = datetime.timedelta(seconds=int(time.process_time() - t))
85-
input("\n\n Password found: {}\n Attempts: {}\n Time: {}\n".format(password, attempts, t))
85+
input(f"\n\n Password found: {password}\n Attempts: {attempts}\n Time: {t}\n")

0 commit comments

Comments
 (0)