Mercurial > ~astiob > upreckon > hgweb
comparison files.py @ 133:a9d2aa6810c7
Removed the useless destructor of files.Archive
| author | Oleg Oshmyan <chortos@inbox.lv> |
|---|---|
| date | Thu, 19 May 2011 16:50:00 +0100 |
| parents | cdd0f970d112 |
| children |
comparison
equal
deleted
inserted
replaced
| 132:cdd0f970d112 | 133:a9d2aa6810c7 |
|---|---|
| 41 @abstractmethod | 41 @abstractmethod |
| 42 def __init__(self, path): raise NotImplementedError | 42 def __init__(self, path): raise NotImplementedError |
| 43 | 43 |
| 44 @abstractmethod | 44 @abstractmethod |
| 45 def extract(self, name, target): raise NotImplementedError | 45 def extract(self, name, target): raise NotImplementedError |
| 46 | |
| 47 def __del__(self): | |
| 48 try: | |
| 49 del self.file | |
| 50 except NameError: | |
| 51 pass | |
| 52 | 46 |
| 53 try: | 47 try: |
| 54 import tarfile | 48 import tarfile |
| 55 except ImportError: | 49 except ImportError: |
| 56 TarArchive = None | 50 TarArchive = None |
