Skip to content

Commit 8c9f37c

Browse files
committed
Update user facing strings
1 parent ff12252 commit 8c9f37c

1 file changed

Lines changed: 10 additions & 11 deletions

File tree

bpdb/__init__.py

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@ def post_mortem(t=None):
5555
t = sys.exc_info()[2]
5656
if t is None:
5757
raise ValueError(
58-
"A valid traceback must be passed if no "
59-
"exception is being handled"
58+
"A valid traceback must be passed if no exception is being handled."
6059
)
6160

6261
p = BPdb()
@@ -86,7 +85,7 @@ def main():
8685
# The following code is based on Python's pdb.py.
8786
mainpyfile = args[1]
8887
if not os.path.exists(mainpyfile):
89-
print("Error:", mainpyfile, "does not exist")
88+
print(f"Error: {mainpyfile} does not exist.")
9089
return 1
9190

9291
# Hide bpdb from argument list.
@@ -101,22 +100,22 @@ def main():
101100
pdb._runscript(mainpyfile)
102101
if pdb._user_requested_quit:
103102
break
104-
print("The program finished and will be restarted")
103+
print("The program finished and will be restarted.")
105104
except Restart:
106-
print("Restarting", mainpyfile, "with arguments:")
105+
print(f"Restarting {mainpyfile} with arguments:")
107106
print("\t" + " ".join(sys.argv[1:]))
108107
except SystemExit:
109108
# In most cases SystemExit does not warrant a post-mortem session.
110-
print("The program exited via sys.exit(). Exit status: ",)
109+
print(
110+
"The program exited via sys.exit(). Exit status: ",
111+
)
111112
print(sys.exc_info()[1])
112113
except:
113114
traceback.print_exc()
114-
print("Uncaught exception. Entering post mortem debugging")
115-
print("Running 'cont' or 'step' will restart the program")
115+
print("Uncaught exception. Entering post mortem debugging.")
116+
print("Running 'cont' or 'step' will restart the program.")
116117
t = sys.exc_info()[2]
117118
pdb.interaction(None, t)
118119
print(
119-
"Post mortem debugger finished. The "
120-
+ mainpyfile
121-
+ " will be restarted"
120+
f"Post mortem debugger finished. The {mainpyfile} will be restarted."
122121
)

0 commit comments

Comments
 (0)