mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-04 10:30:05 +08:00
14 lines
245 B
Python
14 lines
245 B
Python
|
# classmethod
|
||
|
class TarFile():
|
||
|
@classmethod
|
||
|
def open(cls, name, **kwargs):
|
||
|
return cls.taropen(name, **kwargs)
|
||
|
|
||
|
@classmethod
|
||
|
def taropen(cls, name, **kwargs):
|
||
|
return name
|
||
|
|
||
|
|
||
|
# should just work
|
||
|
TarFile.open('hallo')
|