Skip to content

Commit

Permalink
Add mode 6
Browse files Browse the repository at this point in the history
  • Loading branch information
jondy committed Jan 10, 2018
1 parent aa2e19a commit ab84519
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pyarmor.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# #
# pyarmor #
# #
# Version: 1.7.0 - 3.0.1 #
# Version: 1.7.0 - 3.2.1 #
# #
#############################################################
#
Expand Down Expand Up @@ -390,6 +390,7 @@ def do_encrypt(argv):
2 Encrypt source code only.
3 (Default) Obfuscate bytecodes.
5 Obfuscate code object of module.
6 Combine mode 3 and 4
Mode 0, 1, 2 is deprecated from v3.2.0, this
option can be ignored in general.
Expand Down Expand Up @@ -458,7 +459,7 @@ def do_encrypt(argv):
elif o in ('-d', '--clean'):
clean = True
elif o in ('-e', '--mode'):
if a not in ('0', '1', '2', '3', '5'):
if a not in ('0', '1', '2', '3', '5', '6'):
raise RuntimeError('Invalid mode "%s"' % a)
mode = int(a)
elif o in ('-m', '--main'):
Expand Down

0 comments on commit ab84519

Please sign in to comment.