Skip to content

Commit 055f31c

Browse files
committed
fix: port_publisher typo
fixes pyserial#228
1 parent fc1bf5a commit 055f31c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/port_publisher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ def close(self):
465465
if pid > 0:
466466
# exit from second parent, save eventual PID before
467467
if args.pidfile is not None:
468-
open(args.pidfile, 'w').write("{}".formt(pid))
468+
open(args.pidfile, 'w').write("{}".format(pid))
469469
sys.exit(0)
470470
except OSError as e:
471471
log.critical("fork #2 failed: {} ({})\n".format(e.errno, e.strerror))

0 commit comments

Comments
 (0)