Skip to content

Commit 2977359

Browse files
author
Kazuki Suzuki Przyborowski
committed
Small update
1 parent db75571 commit 2977359

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

archivefile.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
Copyright 2018-2024 Game Maker 2k - http://intdb.sourceforge.net/
1515
Copyright 2018-2024 Kazuki Przyborowski - https://github.com/KazukiPrzyborowski
1616
17-
$FileInfo: archivefile.py - Last Update: 3/7/2025 Ver. 0.19.0 RC 1 - Author: cooldude2k $
17+
$FileInfo: archivefile.py - Last Update: 3/7/2025 Ver. 0.19.4 RC 1 - Author: cooldude2k $
1818
'''
1919

2020
from __future__ import absolute_import, division, print_function, unicode_literals, generators, with_statement, nested_scopes
@@ -27,12 +27,12 @@
2727
# Conditional import and signal handling for Unix-like systems
2828
if os.name != 'nt': # Not Windows
2929
import signal
30-
31-
def handler(signum, frame):
32-
pyarchivefile.VerbosePrintOut(
33-
"Received SIGPIPE, exiting gracefully.", "info")
34-
sys.exit(0)
35-
signal.signal(signal.SIGPIPE, handler)
30+
if hasattr(signal, 'SIGPIPE'):
31+
def handler(signum, frame):
32+
pyarchivefile.VerbosePrintOut(
33+
"Received SIGPIPE, exiting gracefully.", "info")
34+
sys.exit(0)
35+
signal.signal(signal.SIGPIPE, handler)
3636

3737
rarfile_support = pyarchivefile.rarfile_support
3838
py7zr_support = pyarchivefile.py7zr_support

pyarchivefile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
Copyright 2018-2024 Game Maker 2k - http://intdb.sourceforge.net/
1515
Copyright 2018-2024 Kazuki Przyborowski - https://github.com/KazukiPrzyborowski
1616
17-
$FileInfo: pyarchivefile.py - Last Update: 3/7/2025 Ver. 0.19.0 RC 1 - Author: cooldude2k $
17+
$FileInfo: pyarchivefile.py - Last Update: 3/7/2025 Ver. 0.19.4 RC 1 - Author: cooldude2k $
1818
'''
1919

2020
from __future__ import absolute_import, division, print_function, unicode_literals, generators, with_statement, nested_scopes
@@ -339,7 +339,7 @@ def decode_unicode_escape(value):
339339
__file_format_dict__ = __file_format_multi_dict__[__file_format_default__]
340340
__project__ = __program_name__
341341
__project_url__ = "https://github.com/GameMaker2k/PyArchiveFile"
342-
__version_info__ = (0, 19, 2, "RC 1", 1)
342+
__version_info__ = (0, 19, 4, "RC 1", 1)
343343
__version_date_info__ = (2025, 3, 7, "RC 1", 1)
344344
__version_date__ = str(__version_date_info__[0]) + "." + str(
345345
__version_date_info__[1]).zfill(2) + "." + str(__version_date_info__[2]).zfill(2)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "PyArchiveFile"
3-
version = "0.19.2"
3+
version = "0.19.4"
44
readme = "README.md"
55
license = { text = "BSD-3-Clause" }
66
keywords = []

0 commit comments

Comments
 (0)