Skip to content

Commit abdb5b7

Browse files
committed
Merge branch 'main' into type-hints
2 parents 436995b + 104a824 commit abdb5b7

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

cmscommon/archive.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,10 @@ def namelist(self) -> list[str]:
184184
names = []
185185
for path, _, filenames in os.walk(self.temp_dir):
186186
for filename in filenames:
187-
names.append(os.path.relpath(os.path.join(path, filename),
188-
self.temp_dir))
187+
filepath = os.path.join(path, filename)
188+
if os.path.islink(filepath) or not os.path.isfile(filepath):
189+
continue
190+
names.append(os.path.relpath(filepath, self.temp_dir))
189191
return names
190192

191193
def read(self, file_path: str) -> typing.BinaryIO:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ class build_py_and_l10n(build_py):
194194
],
195195
},
196196
keywords="ioi programming contest grader management system",
197-
license_expression="AGPL-3.0-only",
197+
license_expression="AGPL-3.0-or-later",
198198
python_requires=">=3.11",
199199
classifiers=[
200200
"Development Status :: 5 - Production/Stable",

0 commit comments

Comments
 (0)