Skip to content

Commit f349a64

Browse files
committed
Rename __clean_method
1 parent a650753 commit f349a64

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dajaxice/core/Dajaxice.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def register(self, function, name=None, method='POST'):
5555
If no name is provided, the module and the function name will be used.
5656
The final (customized or not) must be unique. """
5757

58-
method = self.__clean_method(method)
58+
method = self.clean_method(method)
5959

6060
# Generate a default name
6161
if not name:
@@ -83,7 +83,7 @@ def is_callable(self, name, method):
8383
""" Return if the function callable or not. """
8484
return name in self._registry and self._registry[name].method == method
8585

86-
def __clean_method(self, method):
86+
def clean_method(self, method):
8787
""" Clean the http method. """
8888
method = method.upper()
8989
if method not in ['GET', 'POST']:

0 commit comments

Comments
 (0)