Compare commits

..

No commits in common. "a44939a7be326ff211d354c6f6cf33c4bd412bf7" and "4b8de442aba8a757bc91df13531540d1765e873f" have entirely different histories.

3 changed files with 15 additions and 33 deletions

View File

@ -1,13 +1,13 @@
;; ----- smex-history ----- ;; ----- smex-history -----
( (
package-refresh-contents python-black
read-only-mode message-tab
overwrite-mode
write-file
python-black-on-save-mode python-black-on-save-mode
python-black-buffer package-install
ispell prettier-prettify
prettier-prettify-region
prettier-mode
) )
;; ----- smex-data ----- ;; ----- smex-data -----
@ -37,9 +37,9 @@
(compile . 2) (compile . 2)
(lsp-mode . 2) (lsp-mode . 2)
(load-theme . 18) (load-theme . 18)
(overwrite-mode . 2) (overwrite-mode . 1)
(goto-line . 2) (goto-line . 2)
(package-refresh-contents . 2) (package-refresh-contents . 1)
(epc:pop-to-last-server-process-buffer . 3) (epc:pop-to-last-server-process-buffer . 3)
(disable-theme . 1) (disable-theme . 1)
(table-insert . 3) (table-insert . 3)
@ -50,7 +50,7 @@
(customize-themes . 1) (customize-themes . 1)
(ido-mode . 1) (ido-mode . 1)
(lsp-describe-session . 1) (lsp-describe-session . 1)
(whitespace-mode . 6) (whitespace-mode . 2)
(python-shell-switch-to-shell . 1) (python-shell-switch-to-shell . 1)
(run-python . 2) (run-python . 2)
(display-fill-column-indicator-mode . 3) (display-fill-column-indicator-mode . 3)
@ -59,12 +59,6 @@
(prettier-mode . 2) (prettier-mode . 2)
(prettier-prettify-region . 2) (prettier-prettify-region . 2)
(python-black . 9) (python-black . 9)
(python-black-on-save-mode . 2) (python-black-on-save-mode . 1)
(message-tab . 1) (message-tab . 1)
(find-file . 1)
(replace-string . 3)
(ispell . 2)
(python-black-buffer . 1)
(write-file . 1)
(read-only-mode . 2)
) )

8
.gitignore vendored
View File

@ -13,14 +13,6 @@
.local/bin/pycodestyle .local/bin/pycodestyle
.local/bin/surprise .local/bin/surprise
.local/bin/yamllint .local/bin/yamllint
.config/Signal/
.config/lazygit/
.config/libreoffice/
.config/quassel-irc.org/
.local/bin/pytube
.local/bin/spotify_dl
.packer.d/
.spotifydl/
.netrc .netrc
.nvimlog .nvimlog
.python_history .python_history

View File

@ -36,7 +36,7 @@ except ImportError:
gzip = None gzip = None
GZIP_BASE = object GZIP_BASE = object
__version__ = '2.1.3' __version__ = '2.1.2'
class FakeShutdownEvent(object): class FakeShutdownEvent(object):
@ -817,8 +817,6 @@ class HTTPDownloader(threading.Thread):
f.close() f.close()
except IOError: except IOError:
pass pass
except HTTP_ERRORS:
pass
class HTTPUploaderData(object): class HTTPUploaderData(object):
@ -884,7 +882,7 @@ class HTTPUploader(threading.Thread):
self.request = request self.request = request
self.request.data.start = self.starttime = start self.request.data.start = self.starttime = start
self.size = size self.size = size
self.result = 0 self.result = None
self.timeout = timeout self.timeout = timeout
self.i = i self.i = i
@ -919,8 +917,6 @@ class HTTPUploader(threading.Thread):
self.result = 0 self.result = 0
except (IOError, SpeedtestUploadTimeout): except (IOError, SpeedtestUploadTimeout):
self.result = sum(self.request.data.total) self.result = sum(self.request.data.total)
except HTTP_ERRORS:
self.result = 0
class SpeedtestResults(object): class SpeedtestResults(object):
@ -1174,9 +1170,9 @@ class Speedtest(object):
# times = get_attributes_by_tag_name(root, 'times') # times = get_attributes_by_tag_name(root, 'times')
client = get_attributes_by_tag_name(root, 'client') client = get_attributes_by_tag_name(root, 'client')
ignore_servers = [ ignore_servers = list(
int(i) for i in server_config['ignoreids'].split(',') if i map(int, server_config['ignoreids'].split(','))
] )
ratio = int(upload['ratio']) ratio = int(upload['ratio'])
upload_max = int(upload['maxchunkcount']) upload_max = int(upload['maxchunkcount'])