Skip to content

Commit b36c61d

Browse files
authored
Merge pull request #324 from online-judge-tools/beet-aizu-patch-1
Update _cplusplus_list_defined_macros to speed up
2 parents 2c42ce8 + 9aca4c4 commit b36c61d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

onlinejudge_verify/languages/cplusplus.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def list_attributes(self, path: pathlib.Path, *, basedir: pathlib.Path) -> Dict[
148148
if comments:
149149
attributes.update(comments)
150150

151-
else:
151+
elif super().is_verification_file(path, basedir=basedir):
152152
# use old-style if special comments not found
153153
# #define PROBLEM "https://..." の形式は複数 environments との相性がよくない。あと遅い
154154
attributes[_NOT_SPECIAL_COMMENTS] = ''

0 commit comments

Comments
 (0)