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 ...@@ -46,7 +46,6 @@ import inary.operations.history
import inary.operations.helper import inary.operations.helper
import inary.operations.remove import inary.operations.remove
import inary.operations.upgrade import inary.operations.upgrade
from inary.system_literals import *
import inary.uri import inary.uri
import inary.util import inary.util
......
...@@ -252,9 +252,9 @@ class ArchiveLzma(ArchiveBase): ...@@ -252,9 +252,9 @@ class ArchiveLzma(ArchiveBase):
import lzma import lzma
except: except:
from backports import lzma 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 = open(output_path, "w")
output.write(lzma_file.read()) output.write(str(lzma_file.read()))
output.close() output.close()
lzma_file.close() lzma_file.close()
......
...@@ -742,7 +742,7 @@ class Builder: ...@@ -742,7 +742,7 @@ class Builder:
"/root/.ccache")) "/root/.ccache"))
ret = catbox.run(self.actionLocals[func], ret = catbox.run(self.actionLocals[func],
valid_paths, bytes(valid_paths.encode('utf-8')),
logger=self.log_sandbox_violation) logger=self.log_sandbox_violation)
# Retcode can be 0 while there is a sanbox violation, so only # Retcode can be 0 while there is a sanbox violation, so only
# look for violations to correctly handle it # look for violations to correctly handle it
......
...@@ -86,7 +86,7 @@ class LocalText(dict): ...@@ -86,7 +86,7 @@ class LocalText(dict):
# FIXME: check for dups and 'en' # FIXME: check for dups and 'en'
if not lang: if not lang:
lang = 'en' lang = 'en'
self[lang] = c self[lang] = str(c)
def encode(self, node, errs): def encode(self, node, errs):
assert self.tag != '' 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