6 Commits

Author SHA1 Message Date
wangzihao
6ffab589a4 Remove six
Remove six Replace the following items with Python 3 style code.
- six.PY3
- six.xrange
- six.string_types
- six.binary_type
- six.iteritems
- six.unichr
- six.wraps
- six.get_function_code
- six.PY2
- six.b
- six.moves.range
- reraise
- six.text_type

Story: 2008305
Task: 41301
Change-Id: Idf64154a013b53c7db771a25f1c63c1295e354e6
2020-11-23 15:20:59 +08:00
Andreas Jaeger
2ebc766534 Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found.

Remove hacking and friends from lower-constraints, they are not needed
for installation.

Change-Id: Ia16e8cbccf7b38be8909aa94e66c04b99f200b89
2020-04-24 12:41:05 +00:00
Martin Chacon Piza
0f4e2bc5df Replacing ujson with simplejson
- http://lists.openstack.org/pipermail/openstack-discuss/2020-January/012285.html

Change-Id: Ic18f8cf4addfedd9055999ec685e81140ffda32d
2020-04-02 15:44:25 +02:00
Laszlo Hegedus
c98478df18 Make monasca-common pep8 compatible
Cleaned up test-requirements.txt in order to use the latest hacking
package.
Removed the ignored pep8 checks and made the code pass all of them.

Also removed the OpenStack Foundation copyright notice that was put
there accidentally before.

Change-Id: I3d287eb71fc2bf0e4d52856c11cbc8a347cac2ed
2016-06-04 09:22:43 +00:00
Koji Nakazono
5c73077520 FIX handling json data with multibyte characters
"json.dumps" function returns encoded value when specifying
"ensure_ascii=False", so it's not necessary to encode the returned
value.

Change-Id: Ic4834a27d36993cd9f4d2b6945cf108e7149d95b
Closes-Bug: 1569112
2016-04-12 10:27:31 +09:00
Tomasz Trębski
e6143321a8 Common REST data handling
Adding common REST data handling
to monasca-common project

Change-Id: I982d0afbc51863905c56e1d4c24307fea261d944
2016-01-14 12:27:33 +00:00