@@ -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
672675def 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