def LazyUpdateIfNeeded(self):
    'Updates the settings from a codereview.settings file, if available.'
    if (not self.updated):
        autoupdate = RunGit(['config', 'rietveld.autoupdate'], error_ok=True).strip().lower()
        cr_settings_file = FindCodereviewSettingsFile()
        if ((autoupdate != 'false') and cr_settings_file):
            LoadCodereviewSettingsFromFile(cr_settings_file)
        self.updated = True
Updates the settings from a codereview.settings file, if available.
def LazyUpdateIfNeeded(self):
    
    if (not self.updated):
        autoupdate = RunGit(['config', 'rietveld.autoupdate'], error_ok=True).strip().lower()
        cr_settings_file = FindCodereviewSettingsFile()
        if ((autoupdate != 'false') and cr_settings_file):
            LoadCodereviewSettingsFromFile(cr_settings_file)
        self.updated = True