File tree Expand file tree Collapse file tree 6 files changed +16
-12
lines changed Expand file tree Collapse file tree 6 files changed +16
-12
lines changed Original file line number Diff line number Diff line change 76
76
77
77
- run : |
78
78
mk python-release owner=libre-embedded \
79
- repo=vcorelib version=3.6.0
79
+ repo=vcorelib version=3.6.1
80
80
if: |
81
81
matrix.python-version == '3.12'
82
82
&& matrix.system == 'ubuntu-latest'
Original file line number Diff line number Diff line change 2
2
=====================================
3
3
generator=datazen
4
4
version=3.2.0
5
- hash=40a79b61e984fa4e38232c2a6632295e
5
+ hash=cabc70daac83874945f038528b4c4fc7
6
6
=====================================
7
7
-->
8
8
9
- # vcorelib ([ 3.6.0 ] ( https://pypi.org/project/vcorelib/ ) )
9
+ # vcorelib ([ 3.6.1 ] ( https://pypi.org/project/vcorelib/ ) )
10
10
11
11
[ ![ python] ( https://img.shields.io/pypi/pyversions/vcorelib.svg )] ( https://pypi.org/project/vcorelib/ )
12
12
![ Build Status] ( https://github.com/libre-embedded/vcorelib/workflows/Python%20Package/badge.svg )
Original file line number Diff line number Diff line change 1
1
---
2
2
major : 3
3
3
minor : 6
4
- patch : 0
4
+ patch : 1
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta:__legacy__"
4
4
5
5
[project ]
6
6
name = " vcorelib"
7
- version = " 3.6.0 "
7
+ version = " 3.6.1 "
8
8
description = " A collection of core Python utilities."
9
9
readme = " README.md"
10
10
requires-python = " >=3.12"
Original file line number Diff line number Diff line change 1
1
# =====================================
2
2
# generator=datazen
3
3
# version=3.2.0
4
- # hash=ad4ebe9217efd823fdd7b55bb9d72258
4
+ # hash=5c5ca97d979a16d96ecb00f31c1bc21e
5
5
# =====================================
6
6
7
7
"""
10
10
11
11
DESCRIPTION = "A collection of core Python utilities."
12
12
PKG_NAME = "vcorelib"
13
- VERSION = "3.6.0 "
13
+ VERSION = "3.6.1 "
14
14
15
15
# vcorelib-specific content.
16
16
DEFAULT_INDENT = 2
Original file line number Diff line number Diff line change 8
8
from contextlib import suppress as _suppress
9
9
from logging import getLogger as _getLogger
10
10
import signal as _signal
11
+ import time as _time
11
12
from types import FrameType as _FrameType
12
13
from typing import Any as _Any
13
14
from typing import Awaitable as _Awaitable
@@ -179,11 +180,14 @@ def run_handle_stop(
179
180
_signal .signal (signal , setter )
180
181
181
182
while not to_run .done () and not loop .is_closed ():
182
- try :
183
- result = loop .run_until_complete (to_run )
184
- except KeyboardInterrupt :
185
- print ("Keyboard interrupt." )
186
- loop .call_soon_threadsafe (stop_sig .set )
183
+ with _suppress (KeyboardInterrupt ):
184
+ if not loop .is_running ():
185
+ loop .run_until_complete (to_run )
186
+ else :
187
+ _time .sleep (0.1 )
188
+
189
+ if to_run .done ():
190
+ result = to_run .result ()
187
191
188
192
return result
189
193
You can’t perform that action at this time.
0 commit comments