From e9c1df8f77f4a81f0a2c7752119ae34f4017d384 Mon Sep 17 00:00:00 2001 From: Vadim Lebedev Date: Tue, 9 Aug 2022 15:08:41 +0200 Subject: [PATCH] Cleanup unused code --- libarchive/__init__.py | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/libarchive/__init__.py b/libarchive/__init__.py index 5823835..79f520a 100644 --- a/libarchive/__init__.py +++ b/libarchive/__init__.py @@ -28,9 +28,6 @@ import stat import sys import time import warnings - -# from ctypes import cdll, c_char_p - from libarchive import _libarchive from io import StringIO @@ -323,11 +320,6 @@ class Entry(object): self.symlink = "" - # if self.issym() and symlink: - # self.symlink = symlink - # else: - # self.symlink = None - @property def header_position(self): return self.hpos @@ -387,9 +379,7 @@ class Entry(object): entry.mtime = getattr(f, 'mtime', time.time()) entry.mode = stat.S_IFREG - if stat.S_ISLNK(entry.mode): - print("yo") - + return entry def to_archive(self, archive): @@ -410,8 +400,6 @@ class Entry(object): call_and_check(_libarchive.archive_write_header, archive._a, archive._a, e) - # todo - # self.hpos = archive.header_position finally: _libarchive.archive_entry_free(e)