We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f987f0 commit f91feb4Copy full SHA for f91feb4
utility.py
@@ -591,6 +591,17 @@ def log_lockfile(prog):
591
fcntl.fcntl(lockfile_fd, fcntl.F_SETFD, old_flags | fcntl.FD_CLOEXEC)
592
return lockfile
593
594
+def last_non_blank_line(buf):
595
+
596
+ all_lines = buf.splitlines()
597
+ all_lines.reverse()
598
+ for line in all_lines:
599
+ if (len(line) > 0):
600
+ return line
601
+ # shouldn't occur unless there's no output
602
+ return ""
603
604
605
if __name__ == '__main__':
606
#configvalue = getConfig("./config.ini", "mysql", "port")
607
#print configvalue
0 commit comments