mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-05 06:41:13 +02:00
Add zstandard compression support for project export
This commit is contained in:
1 parent
37c7bc4956
commit
8a964390f8
7 files changed
+167
-17
No files matched your search
@@ -0,0 +1,20 @@
|
||||
import functools
|
||||
|
||||
|
||||
class patch:
|
||||
|
||||
originals = {}
|
||||
|
||||
def __init__(self, host, name):
|
||||
self.host = host
|
||||
self.name = name
|
||||
|
||||
def __call__(self, func):
|
||||
original = getattr(self.host, self.name)
|
||||
self.originals[self.name] = original
|
||||
|
||||
functools.update_wrapper(func, original)
|
||||
setattr(self.host, self.name, func)
|
||||
|
||||
return func
|
||||
|
||||
Reference in new issue
Block a user