This repository has been archived by the owner on Feb 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #333 from maarten-boot/master
update to latest whoisdomain
- Loading branch information
Showing
28 changed files
with
537 additions
and
342 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,31 @@ | ||
import sys | ||
# import sys | ||
import os | ||
import logging | ||
|
||
from typing import ( | ||
Optional, | ||
) | ||
|
||
log = logging.getLogger(__name__) | ||
logging.basicConfig(level=os.environ.get("LOGLEVEL", "INFO")) | ||
|
||
|
||
class DummyCache: | ||
def __init__( | ||
self, | ||
verbose: bool = False, | ||
) -> None: | ||
self.verbose = verbose | ||
if self.verbose: | ||
print(f"{type(self).__name__} verbose: {self.verbose}", file=sys.stderr) | ||
|
||
def get( | ||
self, | ||
keyString: str, | ||
) -> Optional[str]: | ||
if self.verbose: | ||
print(f"{type(self).__name__} get: {keyString}", file=sys.stderr) | ||
return None | ||
|
||
def put( | ||
self, | ||
keyString: str, | ||
data: str, | ||
) -> str: | ||
if self.verbose: | ||
print(f"{type(self).__name__} put: {keyString}", file=sys.stderr) | ||
return data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.