@@ -130,7 +130,7 @@ def build_locale(self):
130130 po_dir = os .path .join (self .config .source_dir , 'po' )
131131
132132 if not self .config .bundle .is_dir (po_dir ):
133- logging .warn ('Missing po/ dir, cannot build_locale' )
133+ logging .warning ('Missing po/ dir, cannot build_locale' )
134134 return
135135
136136 if os .path .exists (self .locale_dir ):
@@ -163,7 +163,7 @@ def build_locale(self):
163163 translated_summary = ''
164164 if translated_summary .find ('\n ' ) > - 1 :
165165 translated_summary = translated_summary .replace ('\n ' , '' )
166- logging .warn (
166+ logging .warning (
167167 'Translation of summary on file %s have \\ n chars. '
168168 'Should be removed' % file_name )
169169 linfo_file = os .path .join (localedir , 'activity.linfo' )
@@ -195,14 +195,14 @@ def get_files_in_git(self, root=None):
195195 stdout = subprocess .PIPE ,
196196 cwd = root )
197197 except OSError :
198- logging .warn ('Packager: git is not installed, '
198+ logging .warning ('Packager: git is not installed, '
199199 'fall back to filtered list' )
200200
201201 if git_ls is not None :
202202 stdout , _ = git_ls .communicate ()
203203 if git_ls .returncode :
204204 # Fall back to filtered list
205- logging .warn ('Packager: this is not a git repository, '
205+ logging .warning ('Packager: this is not a git repository, '
206206 'fall back to filtered list' )
207207 elif stdout :
208208 # pylint: disable=E1103
0 commit comments