You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 16:59:52 +08:00
13 lines
325 B
Python
13 lines
325 B
Python
# From sql/schema.py and 3.5 _strptime.py
|
|
# Note that kwargs comes before "positional" args
|
|
|
|
def tometadata(self, metadata, schema, Table, args, name=None):
|
|
table = Table(
|
|
name, metadata, schema=schema,
|
|
*args, **self.kwargs
|
|
)
|
|
return table
|
|
|
|
def _strptime_datetime(cls, args):
|
|
return cls(*args)
|