Skip to content

Commit

Permalink
Added end arg to print_trunc() ↞ [auto-sync from https://github.c…
Browse files Browse the repository at this point in the history
  • Loading branch information
kudo-sync-bot committed Feb 7, 2025
1 parent d2895c1 commit 1cccdb0
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions chatgpt/amazongpt/utils/remove-json-keys.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'''
Script: remove-json-keys.py
Version: 2023.9.21
Version: 2025.2.7
Description: Remove key/value pairs from json_folder/**.json
Author: Adam Lui
URL: https://github.com/adamlui/python-utils
Expand All @@ -13,7 +13,7 @@
# UI initializations
os.system('color') ; print('\033[0;92m') # set font to bright green
terminal_width = os.get_terminal_size()[0]
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)

print('')

Expand Down
4 changes: 2 additions & 2 deletions chatgpt/autoclear-chatgpt-history/utils/remove-json-keys.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'''
Script: remove-json-keys.py
Version: 2023.9.21
Version: 2025.2.7
Description: Remove key/value pairs from json_folder/**.json
Author: Adam Lui
URL: https://github.com/adamlui/python-utils
Expand All @@ -13,7 +13,7 @@
# UI initializations
os.system('color') ; print('\033[0;92m') # set font to bright green
terminal_width = os.get_terminal_size()[0]
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)

print('')

Expand Down
4 changes: 2 additions & 2 deletions chatgpt/bravegpt/utils/remove-json-keys.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'''
Script: remove-json-keys.py
Version: 2023.9.21
Version: 2025.2.7
Description: Remove key/value pairs from json_folder/**.json
Author: Adam Lui
URL: https://github.com/adamlui/python-utils
Expand All @@ -13,7 +13,7 @@
# UI initializations
os.system('color') ; print('\033[0;92m') # set font to bright green
terminal_width = os.get_terminal_size()[0]
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)

print('')

Expand Down
4 changes: 2 additions & 2 deletions chatgpt/chatgpt-auto-refresh/utils/remove-json-keys.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'''
Script: remove-json-keys.py
Version: 2023.9.21
Version: 2025.2.7
Description: Remove key/value pairs from json_folder/**.json
Author: Adam Lui
URL: https://github.com/adamlui/python-utils
Expand All @@ -13,7 +13,7 @@
# UI initializations
os.system('color') ; print('\033[0;92m') # set font to bright green
terminal_width = os.get_terminal_size()[0]
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)

print('')

Expand Down
4 changes: 2 additions & 2 deletions chatgpt/chatgpt-auto-talk/utils/remove-json-keys.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'''
Script: remove-json-keys.py
Version: 2023.9.21
Version: 2025.2.7
Description: Remove key/value pairs from json_folder/**.json
Author: Adam Lui
URL: https://github.com/adamlui/python-utils
Expand All @@ -13,7 +13,7 @@
# UI initializations
os.system('color') ; print('\033[0;92m') # set font to bright green
terminal_width = os.get_terminal_size()[0]
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)

print('')

Expand Down
4 changes: 2 additions & 2 deletions chatgpt/duckduckgpt/utils/remove-json-keys.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'''
Script: remove-json-keys.py
Version: 2023.9.21
Version: 2025.2.7
Description: Remove key/value pairs from json_folder/**.json
Author: Adam Lui
URL: https://github.com/adamlui/python-utils
Expand All @@ -13,7 +13,7 @@
# UI initializations
os.system('color') ; print('\033[0;92m') # set font to bright green
terminal_width = os.get_terminal_size()[0]
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)

print('')

Expand Down
4 changes: 2 additions & 2 deletions chatgpt/googlegpt/utils/remove-json-keys.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'''
Script: remove-json-keys.py
Version: 2023.9.21
Version: 2025.2.7
Description: Remove key/value pairs from json_folder/**.json
Author: Adam Lui
URL: https://github.com/adamlui/python-utils
Expand All @@ -13,7 +13,7 @@
# UI initializations
os.system('color') ; print('\033[0;92m') # set font to bright green
terminal_width = os.get_terminal_size()[0]
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)

print('')

Expand Down

0 comments on commit 1cccdb0

Please sign in to comment.