Skip to content

Commit 1ecc312

Browse files
committed
fix invaild syntax
1 parent 6a109ce commit 1ecc312

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

oclp_r/encry/as1/based.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import
21
import base64
32
from oclp_r.encry.panic.panic import Panic
43

@@ -10,7 +9,7 @@ def encry(self,data):
109
try:
1110
if not isinstance(data, bytes):
1211
raise Panic("Panic:This type is not bytes.",4,"TypeError").raise_panic()
13-
self.encry = .b64encode(data)
12+
self.encry = base64.b64encode(data)
1413

1514
return self.encry
1615
except Exception as e:

0 commit comments

Comments
 (0)