@@ -166,7 +166,7 @@ class CompileCatalog(CommandMixin):
166166 ('use-fuzzy' , 'f' ,
167167 'also include fuzzy translations' ),
168168 ('statistics' , None ,
169- 'print statistics about translations' )
169+ 'print statistics about translations' ),
170170 ]
171171 boolean_options = ['use-fuzzy' , 'statistics' ]
172172
@@ -246,7 +246,7 @@ def _run_domain(self, domain):
246246 percentage = translated * 100 // len (catalog )
247247 self .log .info (
248248 '%d of %d messages (%d%%) translated in %s' ,
249- translated , len (catalog ), percentage , po_file
249+ translated , len (catalog ), percentage , po_file ,
250250 )
251251
252252 if catalog .fuzzy and not self .use_fuzzy :
@@ -257,7 +257,7 @@ def _run_domain(self, domain):
257257 for message , errors in catalog_errors :
258258 for error in errors :
259259 self .log .error (
260- 'error: %s:%d: %s' , po_file , message .lineno , error
260+ 'error: %s:%d: %s' , po_file , message .lineno , error ,
261261 )
262262
263263 self .log .info ('compiling catalog %s to %s' , po_file , mo_file )
@@ -342,7 +342,7 @@ class ExtractMessages(CommandMixin):
342342 ]
343343 boolean_options = [
344344 'no-default-keywords' , 'no-location' , 'omit-header' , 'no-wrap' ,
345- 'sort-output' , 'sort-by-file' , 'strip-comments'
345+ 'sort-output' , 'sort-by-file' , 'strip-comments' ,
346346 ]
347347 as_args = 'input-paths'
348348 multiple_value_options = (
@@ -357,7 +357,7 @@ class ExtractMessages(CommandMixin):
357357 'strip-comments' : ('--strip-comment-tags' ,),
358358 }
359359 option_choices = {
360- 'add-location' : ('full' , 'file' , 'never' , ),
360+ 'add-location' : ('full' , 'file' , 'never' ),
361361 }
362362
363363 def initialize_options (self ):
@@ -391,7 +391,7 @@ def finalize_options(self):
391391 self .input_paths = self .input_dirs
392392 else :
393393 raise OptionError (
394- 'input-dirs and input-paths are mutually exclusive'
394+ 'input-dirs and input-paths are mutually exclusive' ,
395395 )
396396
397397 keywords = {} if self .no_default_keywords else DEFAULT_KEYWORDS .copy ()
@@ -402,14 +402,14 @@ def finalize_options(self):
402402
403403 if not self .keywords :
404404 raise OptionError (
405- 'you must specify new keywords if you disable the default ones'
405+ 'you must specify new keywords if you disable the default ones' ,
406406 )
407407
408408 if not self .output_file :
409409 raise OptionError ('no output file specified' )
410410 if self .no_wrap and self .width :
411411 raise OptionError (
412- "'--no-wrap' and '--width' are mutually exclusive"
412+ "'--no-wrap' and '--width' are mutually exclusive" ,
413413 )
414414 if not self .no_wrap and not self .width :
415415 self .width = 76
@@ -418,7 +418,7 @@ def finalize_options(self):
418418
419419 if self .sort_output and self .sort_by_file :
420420 raise OptionError (
421- "'--sort-output' and '--sort-by-file' are mutually exclusive"
421+ "'--sort-output' and '--sort-by-file' are mutually exclusive" ,
422422 )
423423
424424 if self .input_paths :
@@ -497,7 +497,7 @@ def run(self):
497497 extracted = check_and_call_extract_file (
498498 path , method_map , options_map ,
499499 callback , self .keywords , self .add_comments ,
500- self .strip_comments , current_dir
500+ self .strip_comments , current_dir ,
501501 )
502502 else :
503503 extracted = extract_from_dir (
@@ -612,7 +612,7 @@ def finalize_options(self):
612612
613613 def run (self ):
614614 self .log .info (
615- 'creating catalog %s based on %s' , self .output_file , self .input_file
615+ 'creating catalog %s based on %s' , self .output_file , self .input_file ,
616616 )
617617
618618 with open (self .input_file , 'rb' ) as infile :
@@ -701,7 +701,7 @@ def finalize_options(self):
701701 if not self .locale :
702702 raise OptionError (
703703 'you must specify the locale for '
704- 'the init-missing option to work'
704+ 'the init-missing option to work' ,
705705 )
706706
707707 try :
@@ -755,7 +755,7 @@ def run(self):
755755 check_status [filename ] = False
756756 continue
757757 self .log .info (
758- 'creating catalog %s based on %s' , filename , self .input_file
758+ 'creating catalog %s based on %s' , filename , self .input_file ,
759759 )
760760
761761 with open (self .input_file , 'rb' ) as infile :
@@ -841,7 +841,7 @@ class CommandLineInterface:
841841 'compile' : 'compile message catalogs to MO files' ,
842842 'extract' : 'extract messages from source files and generate a POT file' ,
843843 'init' : 'create new message catalogs from a POT file' ,
844- 'update' : 'update existing message catalogs from a POT file'
844+ 'update' : 'update existing message catalogs from a POT file' ,
845845 }
846846
847847 command_classes = {
@@ -935,7 +935,7 @@ def _configure_command(self, cmdname, argv):
935935
936936 parser = optparse .OptionParser (
937937 usage = self .usage % (cmdname , '' ),
938- description = self .commands [cmdname ]
938+ description = self .commands [cmdname ],
939939 )
940940 as_args = getattr (cmdclass , "as_args" , ())
941941 for long , short , help in cmdclass .user_options :
0 commit comments