knify 1.8.45__tar.gz → 1.8.46__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {knify-1.8.45 → knify-1.8.46}/PKG-INFO +1 -1
- {knify-1.8.45 → knify-1.8.46}/knify/fileutil.py +1 -1
- {knify-1.8.45 → knify-1.8.46}/knify/help.py +1 -1
- {knify-1.8.45 → knify-1.8.46}/knify.egg-info/PKG-INFO +1 -1
- {knify-1.8.45 → knify-1.8.46}/LICENSE +0 -0
- {knify-1.8.45 → knify-1.8.46}/README.md +0 -0
- {knify-1.8.45 → knify-1.8.46}/knify/__init__.py +0 -0
- {knify-1.8.45 → knify-1.8.46}/knify/dateutil.py +0 -0
- {knify-1.8.45 → knify-1.8.46}/knify/listutil.py +0 -0
- {knify-1.8.45 → knify-1.8.46}/knify/logger.py +0 -0
- {knify-1.8.45 → knify-1.8.46}/knify/objutil.py +0 -0
- {knify-1.8.45 → knify-1.8.46}/knify/threadutil.py +0 -0
- {knify-1.8.45 → knify-1.8.46}/knify/warnutil.py +0 -0
- {knify-1.8.45 → knify-1.8.46}/knify.egg-info/SOURCES.txt +0 -0
- {knify-1.8.45 → knify-1.8.46}/knify.egg-info/dependency_links.txt +0 -0
- {knify-1.8.45 → knify-1.8.46}/knify.egg-info/requires.txt +0 -0
- {knify-1.8.45 → knify-1.8.46}/knify.egg-info/top_level.txt +0 -0
- {knify-1.8.45 → knify-1.8.46}/setup.cfg +0 -0
- {knify-1.8.45 → knify-1.8.46}/setup.py +0 -0
@@ -8,6 +8,6 @@ def read_to_string(file_path_: str, encoding_: str = 'utf-8') -> str:
|
|
8
8
|
return file.read()
|
9
9
|
|
10
10
|
|
11
|
-
def read_lines(file_path_: str, encoding_: str = 'utf-8', trim: bool =
|
11
|
+
def read_lines(file_path_: str, encoding_: str = 'utf-8', trim: bool = True) -> list[str]:
|
12
12
|
with open(file_path_, 'r', encoding=encoding_) as file:
|
13
13
|
return [line_.strip() for line_ in file.readlines()] if trim else file.readlines()
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|