Linux server1.dn-server.com 4.18.0-553.89.1.lve.el8.x86_64 #1 SMP Wed Dec 10 13:58:50 UTC 2025 x86_64
LiteSpeed
Server IP : 195.201.204.189 & Your IP : 216.73.216.45
Domains :
Cant Read [ /etc/named.conf ]
User : beriska1
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
alt /
python312 /
lib64 /
python3.12 /
test /
support /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2026-05-05 23:07
_hypothesis_stubs
[ DIR ]
drwxr-xr-x
2026-05-05 23:07
__init__.py
84
KB
-rw-r--r--
2026-04-20 11:09
ast_helper.py
1.79
KB
-rw-r--r--
2026-04-20 11:09
asynchat.py
11.33
KB
-rw-r--r--
2026-04-20 11:09
asyncore.py
19.9
KB
-rw-r--r--
2026-04-20 11:09
bytecode_helper.py
4.88
KB
-rw-r--r--
2026-04-20 11:09
hashlib_helper.py
1.86
KB
-rw-r--r--
2026-04-20 11:09
hypothesis_helper.py
1.35
KB
-rw-r--r--
2026-04-20 11:09
i18n_helper.py
1.98
KB
-rw-r--r--
2026-04-20 11:09
import_helper.py
10.44
KB
-rw-r--r--
2026-04-20 11:09
interpreters.py
5.67
KB
-rw-r--r--
2026-04-20 11:09
logging_helper.py
916
B
-rw-r--r--
2026-04-20 11:09
os_helper.py
23.82
KB
-rw-r--r--
2026-04-20 11:09
pty_helper.py
2.98
KB
-rw-r--r--
2026-04-20 11:09
script_helper.py
11.59
KB
-rw-r--r--
2026-04-20 11:09
smtpd.py
30.03
KB
-rwxr-xr-x
2026-04-20 11:09
socket_helper.py
13.47
KB
-rw-r--r--
2026-04-20 11:09
testcase.py
4.64
KB
-rw-r--r--
2026-04-20 11:09
threading_helper.py
7.86
KB
-rw-r--r--
2026-04-20 11:09
venv.py
2.3
KB
-rw-r--r--
2026-04-20 11:09
warnings_helper.py
6.69
KB
-rw-r--r--
2026-04-20 11:09
Save
Rename
import re import subprocess import sys import unittest from pathlib import Path from test.support import REPO_ROOT, TEST_HOME_DIR, requires_subprocess from test.test_tools import skip_if_missing pygettext = Path(REPO_ROOT) / 'Tools' / 'i18n' / 'pygettext.py' msgid_pattern = re.compile(r'msgid(.*?)(?:msgid_plural|msgctxt|msgstr)', re.DOTALL) msgid_string_pattern = re.compile(r'"((?:\\"|[^"])*)"') def _generate_po_file(path, *, stdout_only=True): res = subprocess.run([sys.executable, pygettext, '--no-location', '-o', '-', path], stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True) if stdout_only: return res.stdout return res def _extract_msgids(po): msgids = [] for msgid in msgid_pattern.findall(po): msgid_string = ''.join(msgid_string_pattern.findall(msgid)) msgid_string = msgid_string.replace(r'\"', '"') if msgid_string: msgids.append(msgid_string) return sorted(msgids) def _get_snapshot_path(module_name): return Path(TEST_HOME_DIR) / 'translationdata' / module_name / 'msgids.txt' @requires_subprocess() class TestTranslationsBase(unittest.TestCase): def assertMsgidsEqual(self, module): '''Assert that msgids extracted from a given module match a snapshot. ''' skip_if_missing('i18n') res = _generate_po_file(module.__file__, stdout_only=False) self.assertEqual(res.returncode, 0) self.assertEqual(res.stderr, '') msgids = _extract_msgids(res.stdout) snapshot_path = _get_snapshot_path(module.__name__) snapshot = snapshot_path.read_text().splitlines() self.assertListEqual(msgids, snapshot) def update_translation_snapshots(module): contents = _generate_po_file(module.__file__) msgids = _extract_msgids(contents) snapshot_path = _get_snapshot_path(module.__name__) snapshot_path.write_text('\n'.join(msgids))