Compare commits
3 Commits
4b8de442ab
...
a44939a7be
Author | SHA1 | Date | |
---|---|---|---|
a44939a7be | |||
df65c68993 | |||
914bc33473 |
@ -1,13 +1,13 @@
|
|||||||
|
|
||||||
;; ----- smex-history -----
|
;; ----- smex-history -----
|
||||||
(
|
(
|
||||||
python-black
|
package-refresh-contents
|
||||||
message-tab
|
read-only-mode
|
||||||
|
overwrite-mode
|
||||||
|
write-file
|
||||||
python-black-on-save-mode
|
python-black-on-save-mode
|
||||||
package-install
|
python-black-buffer
|
||||||
prettier-prettify
|
ispell
|
||||||
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 . 1)
|
(overwrite-mode . 2)
|
||||||
(goto-line . 2)
|
(goto-line . 2)
|
||||||
(package-refresh-contents . 1)
|
(package-refresh-contents . 2)
|
||||||
(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 . 2)
|
(whitespace-mode . 6)
|
||||||
(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,6 +59,12 @@
|
|||||||
(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 . 1)
|
(python-black-on-save-mode . 2)
|
||||||
(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
8
.gitignore
vendored
@ -13,6 +13,14 @@
|
|||||||
.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
|
||||||
|
@ -36,7 +36,7 @@ except ImportError:
|
|||||||
gzip = None
|
gzip = None
|
||||||
GZIP_BASE = object
|
GZIP_BASE = object
|
||||||
|
|
||||||
__version__ = '2.1.2'
|
__version__ = '2.1.3'
|
||||||
|
|
||||||
|
|
||||||
class FakeShutdownEvent(object):
|
class FakeShutdownEvent(object):
|
||||||
@ -817,6 +817,8 @@ class HTTPDownloader(threading.Thread):
|
|||||||
f.close()
|
f.close()
|
||||||
except IOError:
|
except IOError:
|
||||||
pass
|
pass
|
||||||
|
except HTTP_ERRORS:
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
class HTTPUploaderData(object):
|
class HTTPUploaderData(object):
|
||||||
@ -882,7 +884,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 = None
|
self.result = 0
|
||||||
self.timeout = timeout
|
self.timeout = timeout
|
||||||
self.i = i
|
self.i = i
|
||||||
|
|
||||||
@ -917,6 +919,8 @@ 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):
|
||||||
@ -1170,9 +1174,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 = list(
|
ignore_servers = [
|
||||||
map(int, server_config['ignoreids'].split(','))
|
int(i) for i in server_config['ignoreids'].split(',') if i
|
||||||
)
|
]
|
||||||
|
|
||||||
ratio = int(upload['ratio'])
|
ratio = int(upload['ratio'])
|
||||||
upload_max = int(upload['maxchunkcount'])
|
upload_max = int(upload['maxchunkcount'])
|
||||||
|
Loading…
Reference in New Issue
Block a user