Browse Source

renamed class ZipReplace into ZipReplaceInh

master
T. Meissner 10 years ago
parent
commit
5e866e5a68
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      python_3_oop/chapter05/zipprocessor.py
  2. +2
    -2
      python_3_oop/chapter05/zipreplace.py

+ 1
- 1
python_3_oop/chapter05/zipprocessor.py View File

@ -3,7 +3,7 @@ import shutil
import zipfile import zipfile
class ZipProcessor:
class ZipProcessorInh:
def __init__(self, zipname): def __init__(self, zipname):
self.zipname = zipname self.zipname = zipname


+ 2
- 2
python_3_oop/chapter05/zipreplace.py View File

@ -1,9 +1,9 @@
from zipprocessor import ZipProcessor
from zipprocessor import ZipProcessorInh
import sys import sys
import os import os
class ZipReplace(ZipProcessor):
class ZipReplace(ZipProcessorInh):
def __init__(self, filename, search_string, replace_string): def __init__(self, filename, search_string, replace_string):
super().__init__(filename) super().__init__(filename)


Loading…
Cancel
Save