Fix pep8 E265 warning of hacking 0.10
Fix the warning E265 "block comment should start with '# '" added in pep 1.5. Change-Id: Ib57282e958be9c7cddffc7bca34fbbf1d4c460fd
This commit is contained in:
parent
a77cd04149
commit
a0db56dcde
@ -67,7 +67,7 @@ def is_server_error(status):
|
|||||||
# List of HTTP status codes
|
# List of HTTP status codes
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
## 1xx Informational
|
# 1xx Informational
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
HTTP_CONTINUE = 100
|
HTTP_CONTINUE = 100
|
||||||
@ -77,7 +77,7 @@ HTTP_CHECKPOINT = 103
|
|||||||
HTTP_REQUEST_URI_TOO_LONG = 122
|
HTTP_REQUEST_URI_TOO_LONG = 122
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
## 2xx Success
|
# 2xx Success
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
HTTP_OK = 200
|
HTTP_OK = 200
|
||||||
@ -91,7 +91,7 @@ HTTP_MULTI_STATUS = 207 # WebDAV
|
|||||||
HTTP_IM_USED = 226
|
HTTP_IM_USED = 226
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
## 3xx Redirection
|
# 3xx Redirection
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
HTTP_MULTIPLE_CHOICES = 300
|
HTTP_MULTIPLE_CHOICES = 300
|
||||||
@ -105,7 +105,7 @@ HTTP_TEMPORARY_REDIRECT = 307
|
|||||||
HTTP_RESUME_INCOMPLETE = 308
|
HTTP_RESUME_INCOMPLETE = 308
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
## 4xx Client Error
|
# 4xx Client Error
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
HTTP_BAD_REQUEST = 400
|
HTTP_BAD_REQUEST = 400
|
||||||
@ -141,7 +141,7 @@ HTTP_BLOCKED_BY_WINDOWS_PARENTAL_CONTROLS = 450
|
|||||||
HTTP_CLIENT_CLOSED_REQUEST = 499
|
HTTP_CLIENT_CLOSED_REQUEST = 499
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
## 5xx Server Error
|
# 5xx Server Error
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
HTTP_INTERNAL_SERVER_ERROR = 500
|
HTTP_INTERNAL_SERVER_ERROR = 500
|
||||||
|
@ -569,9 +569,9 @@ class FallocateWrapper(object):
|
|||||||
self.func_name = 'posix_fallocate'
|
self.func_name = 'posix_fallocate'
|
||||||
self.fallocate = noop_libc_function
|
self.fallocate = noop_libc_function
|
||||||
return
|
return
|
||||||
## fallocate is preferred because we need the on-disk size to match
|
# fallocate is preferred because we need the on-disk size to match
|
||||||
## the allocated size. Older versions of sqlite require that the
|
# the allocated size. Older versions of sqlite require that the
|
||||||
## two sizes match. However, fallocate is Linux only.
|
# two sizes match. However, fallocate is Linux only.
|
||||||
for func in ('fallocate', 'posix_fallocate'):
|
for func in ('fallocate', 'posix_fallocate'):
|
||||||
self.func_name = func
|
self.func_name = func
|
||||||
self.fallocate = load_libc_function(func, log_error=False)
|
self.fallocate = load_libc_function(func, log_error=False)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#-*- coding:utf-8 -*-
|
# coding: utf-8
|
||||||
# Copyright (c) 2013 OpenStack Foundation
|
# Copyright (c) 2013 OpenStack Foundation
|
||||||
#
|
#
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#-*- coding:utf-8 -*-
|
# coding: utf-8
|
||||||
# Copyright (c) 2010-2012 OpenStack Foundation
|
# Copyright (c) 2010-2012 OpenStack Foundation
|
||||||
#
|
#
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
#-*- coding:utf-8 -*-
|
# coding: utf-8
|
||||||
# Copyright (c) 2013 OpenStack Foundation
|
# Copyright (c) 2013 OpenStack Foundation
|
||||||
#
|
#
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
Loading…
Reference in New Issue
Block a user