Skip to content

Commit

Permalink
Added workaround for asyncio bug (close #145)
Browse files Browse the repository at this point in the history
  • Loading branch information
AcidWeb committed Sep 14, 2020
1 parent 9d0e16d commit ffc8cf7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CB/GitLab.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ def install(self, path):
self.archive.extractall(path)
for directory in self.directories:
shutil.rmtree(path / directory, ignore_errors=True)
# FIXME - Python bug #32689
# FIXME - Python bug #32689 - Fixed in 3.9
shutil.move(str(path / f'{self.shorthPath}-{self.branch}' / directory), str(path))
shutil.rmtree(path / f'{self.shorthPath}-{self.branch}')
2 changes: 1 addition & 1 deletion CB/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import random
from rich.terminal_theme import TerminalTheme

__version__ = '3.9.4'
__version__ = '3.9.5'
__license__ = 'GPLv3'
__copyright__ = '2019-2020, Paweł Jastrzębski <[email protected]>'
__docformat__ = 'restructuredtext en'
Expand Down
5 changes: 5 additions & 0 deletions CurseBreaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@
if platform.system() == 'Windows':
from ctypes import windll, wintypes

# FIXME - Python bug #39010 - Fixed in 3.8.6/3.9
import asyncio
import selectors
asyncio.set_event_loop(asyncio.SelectorEventLoop(selectors.SelectSelector()))


class TUI:
def __init__(self):
Expand Down

0 comments on commit ffc8cf7

Please sign in to comment.