Skip to content

Commit a011236

Browse files
committed
Added end arg to print_trunc() ↞ [auto-sync from https://github.com/adamlui/python-utils]
1 parent 4c50fee commit a011236

File tree

22 files changed

+44
-44
lines changed

22 files changed

+44
-44
lines changed

amazongpt/greasemonkey/utils/remove-json-keys.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'''
22
Script: remove-json-keys.py
3-
Version: 2023.9.21
3+
Version: 2025.2.7
44
Description: Remove key/value pairs from json_folder/**.json
55
Author: Adam Lui
66
URL: https://github.com/adamlui/python-utils
@@ -13,7 +13,7 @@
1313
# UI initializations
1414
os.system('color') ; print('\033[0;92m') # set font to bright green
1515
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] + '...')
16+
def print_trunc(msg, end='\n') : print(msg if len(msg) < terminal_width else msg[0:terminal_width-4] + '...', end=end)
1717

1818
print('')
1919

autoclear-chatgpt-history/greasemonkey/utils/remove-json-keys.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'''
22
Script: remove-json-keys.py
3-
Version: 2023.9.21
3+
Version: 2025.2.7
44
Description: Remove key/value pairs from json_folder/**.json
55
Author: Adam Lui
66
URL: https://github.com/adamlui/python-utils
@@ -13,7 +13,7 @@
1313
# UI initializations
1414
os.system('color') ; print('\033[0;92m') # set font to bright green
1515
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] + '...')
16+
def print_trunc(msg, end='\n') : print(msg if len(msg) < terminal_width else msg[0:terminal_width-4] + '...', end=end)
1717

1818
print('')
1919

brave-omnibox/chromium/utils/remove-json-keys.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'''
22
Script: remove-json-keys.py
3-
Version: 2023.9.21
3+
Version: 2025.2.7
44
Description: Remove key/value pairs from json_folder/**.json
55
Author: Adam Lui
66
URL: https://github.com/adamlui/python-utils
@@ -13,7 +13,7 @@
1313
# UI initializations
1414
os.system('color') ; print('\033[0;92m') # set font to bright green
1515
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] + '...')
16+
def print_trunc(msg, end='\n') : print(msg if len(msg) < terminal_width else msg[0:terminal_width-4] + '...', end=end)
1717

1818
print('')
1919

brave-omnibox/firefox/utils/remove-json-keys.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'''
22
Script: remove-json-keys.py
3-
Version: 2023.9.21
3+
Version: 2025.2.7
44
Description: Remove key/value pairs from json_folder/**.json
55
Author: Adam Lui
66
URL: https://github.com/adamlui/python-utils
@@ -13,7 +13,7 @@
1313
# UI initializations
1414
os.system('color') ; print('\033[0;92m') # set font to bright green
1515
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] + '...')
16+
def print_trunc(msg, end='\n') : print(msg if len(msg) < terminal_width else msg[0:terminal_width-4] + '...', end=end)
1717

1818
print('')
1919

bravegpt/greasemonkey/utils/remove-json-keys.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'''
22
Script: remove-json-keys.py
3-
Version: 2023.9.21
3+
Version: 2025.2.7
44
Description: Remove key/value pairs from json_folder/**.json
55
Author: Adam Lui
66
URL: https://github.com/adamlui/python-utils
@@ -13,7 +13,7 @@
1313
# UI initializations
1414
os.system('color') ; print('\033[0;92m') # set font to bright green
1515
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] + '...')
16+
def print_trunc(msg, end='\n') : print(msg if len(msg) < terminal_width else msg[0:terminal_width-4] + '...', end=end)
1717

1818
print('')
1919

chatgpt-auto-continue/chromium/utils/remove-json-keys.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'''
22
Script: remove-json-keys.py
3-
Version: 2023.9.21
3+
Version: 2025.2.7
44
Description: Remove key/value pairs from json_folder/**.json
55
Author: Adam Lui
66
URL: https://github.com/adamlui/python-utils
@@ -13,7 +13,7 @@
1313
# UI initializations
1414
os.system('color') ; print('\033[0;92m') # set font to bright green
1515
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] + '...')
16+
def print_trunc(msg, end='\n') : print(msg if len(msg) < terminal_width else msg[0:terminal_width-4] + '...', end=end)
1717

1818
print('')
1919

chatgpt-auto-continue/firefox/utils/remove-json-keys.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'''
22
Script: remove-json-keys.py
3-
Version: 2023.9.21
3+
Version: 2025.2.7
44
Description: Remove key/value pairs from json_folder/**.json
55
Author: Adam Lui
66
URL: https://github.com/adamlui/python-utils
@@ -13,7 +13,7 @@
1313
# UI initializations
1414
os.system('color') ; print('\033[0;92m') # set font to bright green
1515
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] + '...')
16+
def print_trunc(msg, end='\n') : print(msg if len(msg) < terminal_width else msg[0:terminal_width-4] + '...', end=end)
1717

1818
print('')
1919

chatgpt-auto-refresh/greasemonkey/utils/remove-json-keys.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'''
22
Script: remove-json-keys.py
3-
Version: 2023.9.21
3+
Version: 2025.2.7
44
Description: Remove key/value pairs from json_folder/**.json
55
Author: Adam Lui
66
URL: https://github.com/adamlui/python-utils
@@ -13,7 +13,7 @@
1313
# UI initializations
1414
os.system('color') ; print('\033[0;92m') # set font to bright green
1515
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] + '...')
16+
def print_trunc(msg, end='\n') : print(msg if len(msg) < terminal_width else msg[0:terminal_width-4] + '...', end=end)
1717

1818
print('')
1919

chatgpt-auto-talk/greasemonkey/utils/remove-json-keys.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'''
22
Script: remove-json-keys.py
3-
Version: 2023.9.21
3+
Version: 2025.2.7
44
Description: Remove key/value pairs from json_folder/**.json
55
Author: Adam Lui
66
URL: https://github.com/adamlui/python-utils
@@ -13,7 +13,7 @@
1313
# UI initializations
1414
os.system('color') ; print('\033[0;92m') # set font to bright green
1515
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] + '...')
16+
def print_trunc(msg, end='\n') : print(msg if len(msg) < terminal_width else msg[0:terminal_width-4] + '...', end=end)
1717

1818
print('')
1919

chatgpt-infinity/chromium/utils/remove-json-keys.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'''
22
Script: remove-json-keys.py
3-
Version: 2023.9.21
3+
Version: 2025.2.7
44
Description: Remove key/value pairs from json_folder/**.json
55
Author: Adam Lui
66
URL: https://github.com/adamlui/python-utils
@@ -13,7 +13,7 @@
1313
# UI initializations
1414
os.system('color') ; print('\033[0;92m') # set font to bright green
1515
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] + '...')
16+
def print_trunc(msg, end='\n') : print(msg if len(msg) < terminal_width else msg[0:terminal_width-4] + '...', end=end)
1717

1818
print('')
1919

0 commit comments

Comments
 (0)