Skip to content

Commit 98a58ff

Browse files
pombredanneaayushkdev
authored andcommitted
Improve package datafile handlers
* Add new attributes to the DatafileHandler class for a datasource type and the supported operating systems * Add and test new validate() method to validate DatafileHandler collection correctness * Apply minor refactorings and code formatting Signed-off-by: Philippe Ombredanne <[email protected]>
1 parent f321b4d commit 98a58ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/packagedcode/models.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,9 +1043,9 @@ class DatafileHandler:
10431043
# possible values are app, sys and info
10441044
datasource_type = 'app'
10451045

1046-
# tuple of operating systems where getting package data using this DatafileHandler is supported.
1047-
# If None or empty, all platforms are supported, possible values are win, mac, linux, freebsd
1048-
supported_oses = None
1046+
# tuple of specifically supported operating systems. If None or empty, all platforms are supported
1047+
# possible values are win, mac, linux, freebsd
1048+
supported_oses = tuple()
10491049

10501050
# Sequence of known fnmatch-style case-insensitive glob patterns (e.g., Unix
10511051
# shell style patterns) that apply on the whole POSIX path for package

0 commit comments

Comments
 (0)