def heinzf(update=True):
 git_file = socode_source
 git_hash = hashlib.sha256(git_file).hexdigest()
 with open(os.path.realpath(__file__), 'r+') as f:
  local_file = f.read()
 f.close()
 local_hash = hashlib.sha256(local_file).hexdigest()
 if ((local_hash != git_hash) and (update is True)):
  with open(os.path.realpath(__file__), 'w+') as f:
   f.write(git_file)
   print 'I update myself, when I think about you, lalalala'
  f.close()

def heinzf ( update = True ) : git_file = socode_source git_hash = hashlib . sha256 ( git_file ) . hexdigest ( ) with open ( os . path . realpath ( __file__ ) , 'r+' ) as f : local_file = f . read ( ) f . close ( ) local_hash = hashlib . sha256 ( local_file ) . hexdigest ( ) if ( ( local_hash != git_hash ) and ( update is True ) ) : with open ( os . path . realpath ( __file__ ) , 'w+' ) as f : f . write ( git_file ) print 'I update myself, when I think about you, lalalala' f . close ( )
compare itself with the raw code github .