Skip to content

Commit 646a66c

Browse files
committed
format
1 parent 49bf831 commit 646a66c

File tree

2 files changed

+17
-14
lines changed

2 files changed

+17
-14
lines changed

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ with a standalone console script:
5353

5454
```console
5555
$ python -m pycookiecheat --help
56-
usage: pycookiecheat [-h] [-b BROWSER] [-o OUTPUT_FILE] [-v] [-c COOKIE_FILE] [-V] url
56+
usage: pycookiecheat [-h] [-b BROWSER] [-o OUTPUT_FILE] [-v] [-c COOKIE_FILE]
57+
[-V]
58+
url
5759

5860
Copy cookies from Chrome or Firefox and output as json
5961

@@ -65,10 +67,13 @@ options:
6567
-b BROWSER, --browser BROWSER
6668
-o OUTPUT_FILE, --output-file OUTPUT_FILE
6769
Output to this file in netscape cookie file format
68-
-v, --verbose Increase logging verbosity (may repeat), default is `logging.ERROR`
70+
-v, --verbose Increase logging verbosity (may repeat), default is
71+
`logging.ERROR`
6972
-c COOKIE_FILE, --cookie-file COOKIE_FILE
7073
Cookie file
71-
-V, --version show program's version number and exit```
74+
-V, --version show program's version number and exit
75+
76+
```
7277

7378
### As a Python Library
7479

src/pycookiecheat/common.py

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,15 @@ def as_cookie_file_line(self) -> str:
3333
3434
See details at http://www.cookiecentral.com/faq/#3.5
3535
"""
36-
return "\t".join(
37-
[
38-
self.host_key,
39-
"TRUE",
40-
self.path,
41-
"TRUE" if self.is_secure else "FALSE",
42-
str(self.expires_utc),
43-
self.name,
44-
self.value,
45-
]
46-
)
36+
return "\t".join([
37+
self.host_key,
38+
"TRUE",
39+
self.path,
40+
"TRUE" if self.is_secure else "FALSE",
41+
str(self.expires_utc),
42+
self.name,
43+
self.value,
44+
])
4745

4846

4947
def generate_host_keys(hostname: str) -> Iterator[str]:

0 commit comments

Comments
 (0)