@@ -65,7 +65,7 @@ def _cli_patch(cli_args): # pragma: no coverage
65
65
_cli_patch (sys .argv )
66
66
67
67
###############################################################################
68
- # Imports and Helpers used everywhere else #####################################
68
+ # Imports and Helpers used everywhere else ####################################
69
69
###############################################################################
70
70
71
71
import base64 , calendar , email .utils , functools , hmac , itertools , \
@@ -226,7 +226,7 @@ class BottleException(Exception):
226
226
pass
227
227
228
228
###############################################################################
229
- # Routing ######################################################################
229
+ # Routing #####################################################################
230
230
###############################################################################
231
231
232
232
@@ -564,7 +564,7 @@ def __repr__(self):
564
564
return '<%s %s -> %s:%s>' % (self .method , self .rule , cb .__module__ , cb .__name__ )
565
565
566
566
###############################################################################
567
- # Application Object ###########################################################
567
+ # Application Object ##########################################################
568
568
###############################################################################
569
569
570
570
@@ -1089,7 +1089,7 @@ def __setattr__(self, name, value):
1089
1089
object .__setattr__ (self , name , value )
1090
1090
1091
1091
###############################################################################
1092
- # HTTP and WSGI Tools ##########################################################
1092
+ # HTTP and WSGI Tools #########################################################
1093
1093
###############################################################################
1094
1094
1095
1095
@@ -1928,7 +1928,7 @@ def __init__(self,
1928
1928
super (HTTPError , self ).__init__ (body , status , ** more_headers )
1929
1929
1930
1930
###############################################################################
1931
- # Plugins ######################################################################
1931
+ # Plugins #####################################################################
1932
1932
###############################################################################
1933
1933
1934
1934
@@ -2044,7 +2044,7 @@ def load_module(self, fullname):
2044
2044
return module
2045
2045
2046
2046
###############################################################################
2047
- # Common Utilities #############################################################
2047
+ # Common Utilities ############################################################
2048
2048
###############################################################################
2049
2049
2050
2050
@@ -2684,7 +2684,7 @@ def save(self, destination, overwrite=False, chunk_size=2 ** 16):
2684
2684
self ._copy_file (destination , chunk_size )
2685
2685
2686
2686
###############################################################################
2687
- # Application Helper ###########################################################
2687
+ # Application Helper ##########################################################
2688
2688
###############################################################################
2689
2689
2690
2690
@@ -2826,7 +2826,7 @@ def static_file(filename, root,
2826
2826
return HTTPResponse (body , ** headers )
2827
2827
2828
2828
###############################################################################
2829
- # HTTP Utilities and MISC (TODO) ###############################################
2829
+ # HTTP Utilities and MISC (TODO) ##############################################
2830
2830
###############################################################################
2831
2831
2832
2832
@@ -3092,7 +3092,7 @@ def wrapper(*a, **ka):
3092
3092
3093
3093
3094
3094
###############################################################################
3095
- # Multipart Handling ###########################################################
3095
+ # Multipart Handling ##########################################################
3096
3096
###############################################################################
3097
3097
# cgi.FieldStorage was deprecated in Python 3.11 and removed in 3.13
3098
3098
# This implementation is based on https://github.com/defnull/multipart/
@@ -3339,7 +3339,7 @@ def close(self):
3339
3339
self .file = False
3340
3340
3341
3341
###############################################################################
3342
- # Server Adapter ###############################################################
3342
+ # Server Adapter ##############################################################
3343
3343
###############################################################################
3344
3344
3345
3345
# Before you edit or add a server adapter, please read:
@@ -3726,7 +3726,7 @@ def run(self, handler):
3726
3726
}
3727
3727
3728
3728
###############################################################################
3729
- # Application Control ##########################################################
3729
+ # Application Control #########################################################
3730
3730
###############################################################################
3731
3731
3732
3732
@@ -3919,7 +3919,7 @@ def __exit__(self, exc_type, *_):
3919
3919
return exc_type is not None and issubclass (exc_type , KeyboardInterrupt )
3920
3920
3921
3921
###############################################################################
3922
- # Template Adapters ############################################################
3922
+ # Template Adapters ###########################################################
3923
3923
###############################################################################
3924
3924
3925
3925
@@ -4419,7 +4419,7 @@ def wrapper(*args, **kwargs):
4419
4419
jinja2_view = functools .partial (view , template_adapter = Jinja2Template )
4420
4420
4421
4421
###############################################################################
4422
- # Constants and Globals ########################################################
4422
+ # Constants and Globals #######################################################
4423
4423
###############################################################################
4424
4424
4425
4425
TEMPLATE_PATH = ['./' , './views/' ]
0 commit comments