mirror of
https://github.com/rwinkhart/sshyp.git
synced 2026-09-06 09:07:13 -04:00
Abbreviated Python declarations
This commit is contained in:
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/python3
|
#!/bin/python3
|
||||||
|
|
||||||
# sshync 2022.01.17.unreleased13
|
# sshync 2022.03.02.unreleased14
|
||||||
|
|
||||||
# external modules
|
# external modules
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python3
|
#!/bin/python3
|
||||||
|
|
||||||
# external modules
|
# external modules
|
||||||
|
|
||||||
@@ -51,7 +51,7 @@ def entry_list_gen(): # generates and prints a list of all folders and entries
|
|||||||
if _real <= get_terminal_size()[0]:
|
if _real <= get_terminal_size()[0]:
|
||||||
_width = len(' '.join(_entry_list))
|
_width = len(' '.join(_entry_list))
|
||||||
else:
|
else:
|
||||||
_width = (len(' '.join(_entry_list))/(_real/get_terminal_size()[0]) - 50)
|
_width = (len(' '.join(_entry_list)) / (_real / get_terminal_size()[0]) - 50)
|
||||||
try:
|
try:
|
||||||
print(fill(' '.join(_entry_list), width=_width) + '\n')
|
print(fill(' '.join(_entry_list), width=_width) + '\n')
|
||||||
except ValueError:
|
except ValueError:
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python3
|
#!/bin/python3
|
||||||
|
|
||||||
# external modules
|
# external modules
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user