This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from paypalrestsdk.resource import List, Find, Create, Post, Update, Replace, Resource | |
from paypalrestsdk.api import default as default_api | |
import paypalrestsdk.util as util | |
from paypalrestsdk.exceptions import MissingParam | |
class Sale(Find, Post): | |
"""Sale class wrapping the REST v1/payments/sale endpoint | |
Usage:: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
import fileinput | |
import datetime | |
'''Usage: python3 translator.py dump.sqlite > dump.mysql ''' | |
def _translate_line(line: str): | |
if 'PRAGMA foreign_keys=OFF;' in line: |