Kaydet (Commit) ddf86f49 authored tarafından Suleyman Poyraz's avatar Suleyman Poyraz

Catbox hatasina baktim bir de şu literal kelimesine hasta oldum. Yanlis…

Catbox hatasina baktim bir de şu literal kelimesine hasta oldum. Yanlis kullanilmiş. Yakinda o modullerin tamami silinecek
üst 3fde3b5b
......@@ -46,7 +46,6 @@ import inary.operations.history
import inary.operations.helper
import inary.operations.remove
import inary.operations.upgrade
from inary.system_literals import *
import inary.uri
import inary.util
......
......@@ -252,9 +252,9 @@ class ArchiveLzma(ArchiveBase):
import lzma
except:
from backports import lzma
lzma_file = lzma.LZMAFile(self.file_path, "r")
lzma_file = lzma.LZMAFile(self.file_path, "rb")
output = open(output_path, "w")
output.write(lzma_file.read())
output.write(str(lzma_file.read()))
output.close()
lzma_file.close()
......
......@@ -742,7 +742,7 @@ class Builder:
"/root/.ccache"))
ret = catbox.run(self.actionLocals[func],
valid_paths,
bytes(valid_paths.encode('utf-8')),
logger=self.log_sandbox_violation)
# Retcode can be 0 while there is a sanbox violation, so only
# look for violations to correctly handle it
......
......@@ -86,7 +86,7 @@ class LocalText(dict):
# FIXME: check for dups and 'en'
if not lang:
lang = 'en'
self[lang] = c
self[lang] = str(c)
def encode(self, node, errs):
assert self.tag != ''
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment