Fix syntax.

This commit is contained in:
Bastian Kleineidam 2013-02-21 17:51:59 +01:00
parent 69ce2740ca
commit 17d01693d2
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# Copyright (C) 2012 Bastian Kleineidam
# Copyright (C) 2012-2013 Bastian Kleineidam
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@ -28,7 +28,7 @@ def extract_lzma(archive, compression, cmd, **kwargs):
targetname = util.get_single_outfile(outdir, archive)
lzmafile = lzma.LZMAFile(archive)
try:
with open(targetname, 'wb') as targetfile
with open(targetname, 'wb') as targetfile:
data = lzmafile.read(READ_SIZE_BYTES)
while data:
targetfile.write(data)