cleanup
This commit is contained in:
2
Makefile
2
Makefile
@@ -2,7 +2,7 @@
|
||||
# its just for some convenience targets.
|
||||
|
||||
# pep8 test
|
||||
PY_FILES=$(shell find $(PWD) -type f -name '*.py')
|
||||
PY_FILES=$(shell find $(PWD)/bam -type f -name '*.py')
|
||||
pep8:
|
||||
- flake8 $(PY_FILES) --ignore=E501,E302,E123,E126,E128,E129,E124,E122 > pep8.log
|
||||
gvim --nofork -c "cfile pep8.log" -c "cope" -c "clast"
|
||||
|
@@ -9,4 +9,3 @@ def main(argv=sys.argv):
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(main(sys.argv))
|
||||
|
||||
|
@@ -350,7 +350,7 @@ def pack(
|
||||
assert(compress_level in range(-1, 10))
|
||||
_compress_level_orig = zlib.Z_DEFAULT_COMPRESSION
|
||||
zlib.Z_DEFAULT_COMPRESSION = compress_level
|
||||
_compress_mode = zipfile.ZIP_DEFLATED (compress_level == 0) if zipfile.ZIP_STORED else zipfile.ZIP_DEFLATED
|
||||
_compress_mode = zipfile.ZIP_STORED if (compress_level == 0) else zipfile.ZIP_DEFLATED
|
||||
if _compress_mode == zipfile.ZIP_STORED:
|
||||
is_compressed_filetype = lambda fn: False
|
||||
else:
|
||||
@@ -428,8 +428,6 @@ def main():
|
||||
parser = create_argparse()
|
||||
args = parser.parse_args(sys.argv[1:])
|
||||
|
||||
encoding = sys.getfilesystemencoding()
|
||||
|
||||
if args.use_quiet:
|
||||
report = lambda msg: None
|
||||
else:
|
||||
|
@@ -278,4 +278,3 @@ def finish(
|
||||
|
||||
if use_json:
|
||||
print("\"complete\"\n]")
|
||||
|
||||
|
@@ -159,6 +159,7 @@ class FPElem_sequence_image_seq(FPElem_sequence_single):
|
||||
userdata = (block, path)
|
||||
"""
|
||||
__slots__ = ()
|
||||
|
||||
def files_siblings(self):
|
||||
block, path, sub_block, sub_path = self.userdata
|
||||
|
||||
@@ -450,7 +451,6 @@ class FilePath:
|
||||
fp.is_sequence = True
|
||||
yield fp, extra_info
|
||||
|
||||
|
||||
@staticmethod
|
||||
def _from_block_VF(block, basedir, extra_info, level):
|
||||
if block[b'packedfile']:
|
||||
@@ -716,7 +716,6 @@ class ExpandID:
|
||||
elif item_type == C_defs.SEQ_TYPE_SOUND_RAM:
|
||||
yield item.get_pointer(b'sound')
|
||||
|
||||
|
||||
yield from seqbase(bf_utils.iter_ListBase(block_ed.get_pointer(b'seqbase.first')))
|
||||
|
||||
@staticmethod
|
||||
|
@@ -862,7 +862,6 @@ class bam_commands:
|
||||
fatal("Path %r not found!" % p)
|
||||
paths = [p.encode('utf-8') for p in paths]
|
||||
|
||||
|
||||
if os.path.exists(filepath_remap):
|
||||
fatal("Remap in progress, run with 'finish' or remove %r" % filepath_remap)
|
||||
|
||||
|
@@ -123,4 +123,3 @@ def is_compressed_filetype(filepath):
|
||||
# '.gz', '.tgz',
|
||||
# '.zip',
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user