Skip to content

Commit

Permalink
Turn 'essid_generators' into a private attribute
Browse files Browse the repository at this point in the history
The 'essid_generators' attribute is not meant to be used outside the
'WifiESSID' class. As a result, this commit turns it into a private
attribute.

See https://docs.python.org/3/tutorial/classes.html#private-variables.
  • Loading branch information
SkypLabs committed Dec 13, 2024
1 parent f1d3cd4 commit 26848a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/faker_wifi_essid/wifi_essid.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def bbox_default_essid(self) -> str:
return self.hexify("Bbox-^^^^^^", upper=True)

# List of the different ESSID generators.
essid_generators: list[Callable] = [
_essid_generators: list[Callable] = [
bbox_default_essid,
common_essid,
upc_default_essid,
Expand All @@ -54,4 +54,4 @@ def wifi_essid(self) -> str:
Returns a random fake Wi-Fi essid.
"""

return self.random_element(self.essid_generators)(self)
return self.random_element(self._essid_generators)(self)

0 comments on commit 26848a5

Please sign in to comment.