original_docstring: Checks if there are keys missing in a given config dict, and if so, updates the config file accordingly.
      This essentially automatically ports jrnl installations if new config parameters are introduced in later
      versions.
docstring: Checks if there are keys missing in a given config dict, and if so, updates the config file accordingly.
  This essentially automatically ports jrnl installations if new config parameters are introduced in later
  versions.
docstring_tokens: Checks if there are keys missing in a given config dict and if so updates the config file accordingly . This essentially automatically ports jrnl installations if new config parameters are introduced in later versions .
code: def upgrade_config(config):
      """Checks if there are keys missing in a given config dict, and if so, updates the config file accordingly.
      This essentially automatically ports jrnl installations if new config parameters are introduced in later
      versions."""
      missing_keys = set(default_config).difference(config)
      if missing_keys or config['version'] != __version__:
          for key in missing_keys:
              config[key] = default_config[key]
          save_config(config)
          print("[Configuration updated to newest version at {}]".format(CONFIG_FILE_PATH))
code_tokens: def upgrade_config ( config ) : missing_keys = set ( default_config ) . difference ( config ) if missing_keys or config [ 'version' ] != __version__ : for key in missing_keys : config [ key ] = default_config [ key ] save_config ( config ) print ( "[Configuration updated to newest version at {}]" . format ( CONFIG_FILE_PATH ) )
short_docstring: Checks if there are keys missing in a given config dict, and if so, updates the config file accordingly.
short_docstring_tokens: Checks if there are keys missing in a given config dict and if so updates the config file accordingly .
comment: """Checks if there are keys missing in a given config dict, and if so, updates the config file accordingly.
      This essentially automatically ports jrnl installations if new config parameters are introduced in later
      versions."""