OAuth2Util/OAuth2Util.py
def _migrate_config(self, oldname=DEFAULT_CONFIG, newname=DEFAULT_CONFIG):
		"""
		Migrates the old config file format to the new one
		"""
		self._log("Your OAuth2Util config file is in an old format and needs "
				"to be changed. I tried as best as I could to migrate it.", logging.WARNING)

		with open(oldname, "r") as old:
			with open(newname, "w") as new:
				new.write("[app]\n")
				new.write(old.read())
def _migrate_config(self, oldname=DEFAULT_CONFIG, newname=DEFAULT_CONFIG):
		"""
		Migrates the old config file format to the new one
		"""
		self._log("Your OAuth2Util config file is in an old format and needs "
				"to be changed. I tried as best as I could to migrate it.", logging.WARNING)

		with open(oldname, "r") as old:
			with open(newname, "w") as new:
				new.write("[app]\n")
				new.write(old.read())
Migrates the old config file format to the new one