<s> from __future__ import unicode_literals , division <EOL> """<STR_LIT>""" <EOL> __author__ = "<STR_LIT>" <EOL> __copyright__ = "<STR_LIT>" <EOL> __version__ = "<STR_LIT>" <EOL> __maintainer__ = "<STR_LIT>" <EOL> __email__ = "<STR_LIT>" <EOL> __date__ = "<STR_LIT>" <EOL> from glob import glob <EOL> import logging <EOL> import tarfile <EOL> def backup ( filenames , prefix = "<STR_LIT:error>" ) : <EOL> """<STR_LIT>""" <EOL> num = max ( [ <NUM_LIT:0> ] + [ int ( f . split ( "<STR_LIT:.>" ) [ <NUM_LIT:1> ] ) <EOL> for f in glob ( "<STR_LIT>" . format ( prefix ) ) ] ) <EOL> filename = "<STR_LIT>" . format ( prefix , num + <NUM_LIT:1> ) <EOL> logging . info ( "<STR_LIT>" . format ( filename ) ) <EOL> with tarfile . open ( filename , "<STR_LIT>" ) as tar : <EOL> for fname in filenames : <EOL> for f in glob ( fname ) : <EOL> tar . add ( f ) </s>
