Commit Graph

9 Commits

Author SHA1 Message Date
Takashi Kajinami 788970e28f Replace deprecated assertRaisesRegexp
It was deprecated in favor of assertRaisesRegex added in Python 3.2.
We can replace it now because Python 2 is no longer supported.

Change-Id: I4cec6e44d48bcee9808bfd647f3a45cd8b1e2f11
2022-06-27 00:28:14 +09:00
xuanyandong 335aa966f3 Remove six
Replace the following items with Python 3 style code.

- six.moves
- six.add_metaclass
- six.PY3
- six.text_type
- six.string_type
- six.string_types
- six.iteritems
- six.integer_types

Implements: blueprint six-removal
Change-Id: Ifdb5ffad4203f14c58959b87338d0de34af76674
2021-01-12 09:02:22 +08:00
Dao Cong Tien b3ae81dc92 Adds doc8 check to pep8
This patch adds doc8 check for .rst files to pep8.
Files that fail doc8 check are also fixed.

Change-Id: Ib8556b6eac0fb5a9bd3b7f8dcf000ab1b23e23bc
2018-10-22 11:14:57 +02:00
shangxiaobj 74c6c5eae8 Update and replace http with https for doc links in cloudkitty
1) Update doc links according to OpenStack document migration
2) Use https instead of http for docs links

Change-Id: Ia64e1e0c9d4461abdf73ab1f53c1de935f1c825d
2017-11-07 08:07:49 +00:00
Jenkins 9daa7c668f Merge "Update log translation hacking rule" 2017-09-12 04:57:05 +00:00
liangcui cb39503e5b Update URLs in documents according to document migration
Change-Id: I9c27cc92f9706adf9bc021e5df5ed4e85ba925e9
2017-07-21 15:06:21 +08:00
Ngo Quoc Cuong 0f9c00a08f Update log translation hacking rule
Starting with the Pike series, OpenStack no longer supports log
translation.
Update hacking rule to prevent log translation in all log level instead
of only debug level.

Since all log translations are invalidated, check_explicit_underscore_import
can be simplified.

Change-Id: If941dc7c1052cea6a3d011980776ee272f8d39a3
2017-07-04 05:10:09 -04:00
fpxie 16cd7cf9ec Remove log translations
Log messages are no longer being translated. This
removes all use of the _LE, _LI, and _LW translation markers to simplify
logging and to avoid confusion with new contributions.

Change-Id: I6de4a70ed5d2a09b10b1446cfd5950446b145031
Co-Authored-By: hnyang <hnyang@fiberhome.com>
2017-04-28 08:46:10 +08:00
Jeremy Liu 5d35fa1d93 Introduce hacking check to Cloudkitty
Add hacking check to ensure we use proper rules and follow
community guideline [1].

[1] http://docs.openstack.org/developer/hacking/

Change-Id: I6586c94023f94adb71369ac11b1a2eb13b449f56
2016-12-16 22:23:28 +08:00