Skip to content

Commit 3abd2d3

Browse files
修复了所有的E501错误
Fixed all E501 (line too long) errors
1 parent e0e22b2 commit 3abd2d3

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

pydoll/browser/fingerprint.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,10 @@ def _generate_user_agent(
500500
browser_version: str,
501501
is_mobile: bool = False,
502502
) -> str:
503-
"""Generate User-Agent based on operating system information and browser version"""
503+
"""
504+
Generate User-Agent based on operating system information and browser
505+
version
506+
"""
504507
ua = None
505508
if is_mobile:
506509
if os_info['name'] == 'Android':
@@ -671,7 +674,8 @@ def get_fingerprint_arguments(
671674

672675
def generate_fingerprint_js(fingerprint: Dict[str, any]) -> str:
673676
"""
674-
Generate JavaScript code to inject into browser, to override fingerprint attributes
677+
Generate JavaScript code to inject into browser, to override fingerprint
678+
attributes
675679
676680
Args:
677681
fingerprint (Dict): Fingerprint data
@@ -772,7 +776,8 @@ def generate_fingerprint_js(fingerprint: Dict[str, any]) -> str:
772776
if (this.width > 5 && this.height > 5) {
773777
// Only modify possible canvas used for fingerprint recognition
774778
const modifiedDataURL = oldToDataURL.call(this, type);
775-
// Add small change to make each time different but visually similar
779+
// Add small change to make each time different but visually
780+
// similar
776781
return modifiedDataURL.slice(0, modifiedDataURL.length - 8) +
777782
fingerprint.canvas_fingerprint.slice(0, 8);
778783
}
@@ -834,7 +839,8 @@ class FingerprintManager:
834839
"""
835840
Class for managing browser fingerprints.
836841
837-
Responsible for generating, storing, and applying browser fingerprint configurations.
842+
Responsible for generating, storing, and applying browser fingerprint
843+
configurations.
838844
"""
839845

840846
def __init__(self):

0 commit comments

Comments
 (0)