Diff of /developer_scripts/ensure_utf8.py [r1730] .. [r1731] Maximize Restore

  Switch to side-by-side view

--- a/developer_scripts/ensure_utf8.py
+++ b/developer_scripts/ensure_utf8.py
@@ -27,6 +27,7 @@
 
     def write_content( fpath, content ):
         fcontent_new = content #unicode( content, 'UTF8' )
+        fcontent_new = fcontent_new.lstrip( unicode( codecs.BOM_UTF8, "utf8" ) )
         f = codecs.open( fpath, 'w+b', 'UTF8' )
         f.write( fcontent_new )
         f.close()
@@ -36,8 +37,12 @@
 
 if __name__ == '__main__':
     sources_dir = os.path.join( os.path.abspath( os.curdir ), '..' )
+    dirs_to_go = [ os.path.join( sources_dir, 'pydsc_dev' )
+                   , os.path.join( sources_dir, 'pygccxml_dev' )
+                   , os.path.join( sources_dir, 'pyplusplus_dev' ) ]
 
-    for fpath in files_iterator( sources_dir, to_be_validated_file_exts ):
+    for fpath in files_iterator( dirs_to_go, to_be_validated_file_exts ):
+
         print 'converting %s' % fpath
         ensure_utf8( fpath )
         print 'converting %s - done' % fpath