refactor: clean up code to py39+ supported syntax - f-strings instead of format - latest typing support instead of pre 3.9 TitleCase - remove UTF-8 declarations. - many more changes Powered by https://github.com/asottile/pyupgrade/ + manual cleanups
13 lines
371 B
Python
13 lines
371 B
Python
# imports - standard imports
|
|
import sys
|
|
|
|
# imports - module imports
|
|
from frappe.integrations.frappe_providers.frappecloud import frappecloud_migrator
|
|
|
|
|
|
def migrate_to(local_site, frappe_provider):
|
|
if frappe_provider in ("frappe.cloud", "frappecloud.com"):
|
|
return frappecloud_migrator(local_site)
|
|
else:
|
|
print(f"{frappe_provider} is not supported yet")
|
|
sys.exit(1)
|