import sys
def usage():
- print "Usage: find_differences.py OLD_FILE NEW_FILE"
+ print( "Usage: find_differences.py OLD_FILE NEW_FILE" )
file2.close()
removed = lines1 - lines2
- print "\n"
- print ">>>> Removed"
+ print( "\n" )
+ print( ">>>> Removed" )
for i in removed:
print("%s\n" %i)
added = lines2 - lines1
- print "\n"
- print ">>>> Added"
+ print( "\n")
+ print( ">>>> Added" )
for i in added:
- print("%s\n" %i)
+ print( "%s\n" %i )
if __name__ == '__main__':
- main()
\ No newline at end of file
+ main()
fp.write( "static err_info err_list[] = {\n" );
for root, dirs, files in os.walk( msgpath ):
for file in files:
- print ">>>> " + file
+ print( ">>>> " + file )
targetXML = open( os.path.join( msgpath, file ) )
tree = parse( targetXML )
- errorroot = tree.getroot()
+ errorroot = tree.getroot()
for error in errorroot.findall( "error" ):
fp.write( "\tERR_ENTRY(\"" )
fp.write( error.get( "name" ) + "\", ")
fp.write( error.findtext( "value" ) + ", \"" )
fp.write( error.findtext( "msg" ) + "\"),\n" )
- print error.get( "name" )
+ print( error.get( "name" ) )
fp.write( "\t{0, NULL, NULL}\n" )
fp.write( "};\n" )
os.mkdir( privatepath )
# os.remove( privatepath + "tizen_error_private.h" )
-# shutil.move( headerpath, privatepath )
\ No newline at end of file
+# shutil.move( headerpath, privatepath )