prefpicker 1.25.0__py3-none-any.whl → 2.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of prefpicker might be problematic. Click here for more details.
- prefpicker/prefpicker.py +5 -3
- {prefpicker-1.25.0.dist-info → prefpicker-2.0.0.dist-info}/METADATA +2 -2
- {prefpicker-1.25.0.dist-info → prefpicker-2.0.0.dist-info}/RECORD +7 -7
- {prefpicker-1.25.0.dist-info → prefpicker-2.0.0.dist-info}/WHEEL +1 -1
- {prefpicker-1.25.0.dist-info → prefpicker-2.0.0.dist-info}/LICENSE +0 -0
- {prefpicker-1.25.0.dist-info → prefpicker-2.0.0.dist-info}/entry_points.txt +0 -0
- {prefpicker-1.25.0.dist-info → prefpicker-2.0.0.dist-info}/top_level.txt +0 -0
prefpicker/prefpicker.py
CHANGED
|
@@ -9,12 +9,15 @@ from importlib.metadata import PackageNotFoundError, version
|
|
|
9
9
|
from json import dumps
|
|
10
10
|
from pathlib import Path
|
|
11
11
|
from random import choice
|
|
12
|
-
from typing import
|
|
12
|
+
from typing import TYPE_CHECKING, Any, Union
|
|
13
13
|
|
|
14
14
|
from yaml import safe_load
|
|
15
15
|
from yaml.parser import ParserError
|
|
16
16
|
from yaml.scanner import ScannerError
|
|
17
17
|
|
|
18
|
+
if TYPE_CHECKING:
|
|
19
|
+
from collections.abc import Iterator
|
|
20
|
+
|
|
18
21
|
__author__ = "Tyson Smith"
|
|
19
22
|
__credits__ = ["Tyson Smith"]
|
|
20
23
|
try:
|
|
@@ -30,8 +33,7 @@ class SourceDataError(Exception):
|
|
|
30
33
|
|
|
31
34
|
# Python <= 3.9 requires the use of Union
|
|
32
35
|
PrefValue = Union[bool, int, str, None]
|
|
33
|
-
|
|
34
|
-
PrefVariant = Dict[str, List[PrefValue]]
|
|
36
|
+
PrefVariant = dict[str, list[PrefValue]]
|
|
35
37
|
|
|
36
38
|
|
|
37
39
|
class PrefPicker: # pylint: disable=missing-docstring
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: prefpicker
|
|
3
|
-
Version:
|
|
3
|
+
Version: 2.0.0
|
|
4
4
|
Summary: PrefPicker - Manage & generate prefs.js files
|
|
5
5
|
Home-page: https://github.com/MozillaSecurity/prefpicker
|
|
6
6
|
Author: Tyson Smith
|
|
@@ -12,7 +12,7 @@ Keywords: firefox fuzz fuzzing test testing
|
|
|
12
12
|
Classifier: License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)
|
|
13
13
|
Classifier: Programming Language :: Python :: 3
|
|
14
14
|
Classifier: Topic :: Software Development :: Testing
|
|
15
|
-
Requires-Python: >=3.
|
|
15
|
+
Requires-Python: >=3.9
|
|
16
16
|
Description-Content-Type: text/markdown
|
|
17
17
|
License-File: LICENSE
|
|
18
18
|
Requires-Dist: PyYAML
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
prefpicker/__init__.py,sha256=XWsqb0fPEcXI12OFAGU0ftCAiUAnNTyyAzADC62x1-g,348
|
|
2
2
|
prefpicker/__main__.py,sha256=8-D6LzRgVF2PwY7XXs1Fs-Nzy0NPOl04DKMmk18SqsU,282
|
|
3
3
|
prefpicker/main.py,sha256=LYFyGmvJKRJauFI5PzEx41ajwi-gNmtdkvyONAl4ff4,3841
|
|
4
|
-
prefpicker/prefpicker.py,sha256=
|
|
4
|
+
prefpicker/prefpicker.py,sha256=pif71pDYV-ZNmYFLK7DZhlWiOuKjNS0BZ9805eUuerw,9864
|
|
5
5
|
prefpicker/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
6
|
prefpicker/test_main.py,sha256=6K4eKDvXwy7ogdj-tOKIfjCJjr0CnQwfFyobjpj4hgk,2644
|
|
7
7
|
prefpicker/test_prefpicker.py,sha256=ag16_Stw_dsMYyPIsg-TU_TFHHLOirO1aSiBd633oO0,9265
|
|
8
8
|
prefpicker/test_templates.py,sha256=jlu3QTWzn1iE_7ljQs3byBAvUaGjeFZPNuBySSvSUoM,1496
|
|
9
9
|
prefpicker/templates/browser-fuzzing.yml,sha256=grkXnDz6yQ7hg-JiwTjlLE1n1WU9TGdpCsdYM3ExmWg,22419
|
|
10
10
|
prefpicker/templates/schema.json,sha256=4WJVuGrxSQHk2CrT5QOZ7SRnTPgK2Dxr4e4LYOmMWyo,898
|
|
11
|
-
prefpicker-
|
|
12
|
-
prefpicker-
|
|
13
|
-
prefpicker-
|
|
14
|
-
prefpicker-
|
|
15
|
-
prefpicker-
|
|
16
|
-
prefpicker-
|
|
11
|
+
prefpicker-2.0.0.dist-info/LICENSE,sha256=HyVuytGSiAUQ6ErWBHTqt1iSGHhLmlC8fO7jTCuR8dU,16725
|
|
12
|
+
prefpicker-2.0.0.dist-info/METADATA,sha256=BsLBE4Aqr1qvdIAZ7D8hTQIhCeeex3eWKLgGQM4pF54,5221
|
|
13
|
+
prefpicker-2.0.0.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
|
|
14
|
+
prefpicker-2.0.0.dist-info/entry_points.txt,sha256=og57vebqGVtgg_OZGO39WUb13H8wMzcnNBh4h-t26K0,52
|
|
15
|
+
prefpicker-2.0.0.dist-info/top_level.txt,sha256=H-QqR-VZXNwG4ya7wnqx5NA-yua6D9uQuBquP2zCRbc,11
|
|
16
|
+
prefpicker-2.0.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|