Skip to content

Commit b0557bc

Browse files
committed
Deprecate 'DecryptionConfig' & remove reflection
1 parent f15da7b commit b0557bc

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

validate_otdf_python.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,15 @@ def verify_encrypt_str() -> None:
4646

4747
config: EncryptionConfig = _get_configuration()
4848

49-
# from otdf_python.go import Slice_string
49+
from otdf_python.go import Slice_string
50+
5051
# da = Slice_string(
5152
# [
5253
# "https://example.com/attr/attr1/value/value1",
5354
# "https://example.com/attr/attr1/value/value2",
5455
# ]
5556
# )
56-
da = None
57+
da = Slice_string([])
5758

5859
tdf_manifest_json = EncryptString(
5960
inputText="Hello from Python",
@@ -90,14 +91,15 @@ def verify_encrypt_file() -> None:
9091
SOME_PLAINTEXT_FILE = Path(tmpDir) / "new-file.txt"
9192
SOME_PLAINTEXT_FILE.write_text("Hello world")
9293

93-
# from otdf_python.go import Slice_string
94+
from otdf_python.go import Slice_string
95+
9496
# da = Slice_string(
9597
# [
9698
# "https://example.com/attr/attr1/value/value1",
9799
# "https://example.com/attr/attr1/value/value2",
98100
# ]
99101
# )
100-
da = None
102+
da = Slice_string([])
101103
outputFilePath = EncryptFile(
102104
inputFilePath=str(SOME_PLAINTEXT_FILE),
103105
outputFilePath=str(SOME_ENCRYPTED_FILE),

0 commit comments

Comments
 (0)