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.
end
print_trunc()
1 parent 68a8027 commit fb4cf9fCopy full SHA for fb4cf9f
remove-json-keys/remove-json-keys.py
@@ -1,6 +1,6 @@
1
'''
2
Script: remove-json-keys.py
3
-Version: 2023.9.21
+Version: 2025.2.7
4
Description: Remove key/value pairs from json_folder/**.json
5
Author: Adam Lui
6
URL: https://github.com/adamlui/python-utils
@@ -13,7 +13,7 @@
13
# UI initializations
14
os.system('color') ; print('\033[0;92m') # set font to bright green
15
terminal_width = os.get_terminal_size()[0]
16
-def print_trunc(msg) : print(msg if len(msg) < terminal_width else msg[0:terminal_width-4] + '...')
+def print_trunc(msg, end='\n') : print(msg if len(msg) < terminal_width else msg[0:terminal_width-4] + '...', end=end)
17
18
print('')
19
0 commit comments