Commit 432dde7753d41b319d8a83eacbd5f50412b99c5d
1 parent
8159c1b9
plugin_biff: fixed #428 for Python 3
Showing
1 changed file
with
1 additions
and
1 deletions
oletools/thirdparty/oledump/plugin_biff.py
| @@ -987,7 +987,7 @@ def ParseExpression(expression): | @@ -987,7 +987,7 @@ def ParseExpression(expression): | ||
| 987 | else: | 987 | else: |
| 988 | result += '*UNKNOWN TOKEN* ' | 988 | result += '*UNKNOWN TOKEN* ' |
| 989 | break | 989 | break |
| 990 | - if expression == '': | 990 | + if len(expression) == 0: |
| 991 | return result | 991 | return result |
| 992 | else: | 992 | else: |
| 993 | # 0x006E: 'EXEC', 0x0095: 'REGISTER' | 993 | # 0x006E: 'EXEC', 0x0095: 'REGISTER' |