Skip to content

Commit ab84519

Browse files
committed
Add mode 6
1 parent aa2e19a commit ab84519

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/pyarmor.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# #
99
# pyarmor #
1010
# #
11-
# Version: 1.7.0 - 3.0.1 #
11+
# Version: 1.7.0 - 3.2.1 #
1212
# #
1313
#############################################################
1414
#
@@ -390,6 +390,7 @@ def do_encrypt(argv):
390390
2 Encrypt source code only.
391391
3 (Default) Obfuscate bytecodes.
392392
5 Obfuscate code object of module.
393+
6 Combine mode 3 and 4
393394
Mode 0, 1, 2 is deprecated from v3.2.0, this
394395
option can be ignored in general.
395396
@@ -458,7 +459,7 @@ def do_encrypt(argv):
458459
elif o in ('-d', '--clean'):
459460
clean = True
460461
elif o in ('-e', '--mode'):
461-
if a not in ('0', '1', '2', '3', '5'):
462+
if a not in ('0', '1', '2', '3', '5', '6'):
462463
raise RuntimeError('Invalid mode "%s"' % a)
463464
mode = int(a)
464465
elif o in ('-m', '--main'):

0 commit comments

Comments
 (0)