forked from ArjanCodes/betterpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix naming to be consistent with pep8
- Loading branch information
Mickey Beurskens
committed
Nov 30, 2021
1 parent
91e4bd8
commit 1b09506
Showing
2 changed files
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ def is_authorized(self) -> bool: | |
pass | ||
|
||
|
||
class Authorizer_SMS(Authorizer): | ||
class AuthorizerSMS(Authorizer): | ||
|
||
def __init__(self): | ||
self.authorized = False | ||
|
@@ -40,7 +40,7 @@ def is_authorized(self) -> bool: | |
return self.authorized | ||
|
||
|
||
class Authorizer_Google(Authorizer): | ||
class AuthorizerGoogle(Authorizer): | ||
|
||
def __init__(self): | ||
self.authorized = False | ||
|
@@ -53,7 +53,7 @@ def is_authorized(self) -> bool: | |
return self.authorized | ||
|
||
|
||
class Authorizer_Robot(Authorizer): | ||
class AuthorizerRobot(Authorizer): | ||
|
||
def __init__(self): | ||
self.authorized = False | ||
|
@@ -117,7 +117,7 @@ def pay(self, order): | |
order.add_item("USB cable", 2, 5) | ||
|
||
print(order.total_price()) | ||
authorizer = Authorizer_Robot() | ||
authorizer = AuthorizerRobot() | ||
# authorizer.verify_code(465839) | ||
authorizer.not_a_robot() | ||
processor = PaypalPaymentProcessor("[email protected]", authorizer) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters