def demo_update_one(filename):
 f = get_contents(filename)
 if (not len(f.strip())):
  return ''
 f = remove_doublesharp_trailing_whitespace(f)
 f = add_shbang_encoding_future(f)
 f = add_win_close_quit_demo_license(f)
 f = convert_inline_comments(f)
 f = replace_xrange(f)
 f = replace_commas_etc(f)
 f = replace_PatchStim(f)
 f = replace_myWin_win(f)
 f = replace_equals(f)
 f = uk_to_us_spelling(f)
 f = split_multiline(f)
 return f

def demo_update_one ( filename ) : f = get_contents ( filename ) if ( not len ( f . strip ( ) ) ) : return '' f = remove_doublesharp_trailing_whitespace ( f ) f = add_shbang_encoding_future ( f ) f = add_win_close_quit_demo_license ( f ) f = convert_inline_comments ( f ) f = replace_xrange ( f ) f = replace_commas_etc ( f ) f = replace_PatchStim ( f ) f = replace_myWin_win ( f ) f = replace_equals ( f ) f = uk_to_us_spelling ( f ) f = split_multiline ( f ) return f
convert file contents to updated style etc .