Commit Graph

8 Commits

Author SHA1 Message Date
xuanyandong 44f22cf2a5 Remove six
Replace the following items with Python 3 style code.

- six.PY2
- six.text_type
- six.string_type
- six.binary_type
- six.iterkeys
- six.moves
- six.itervalues

Implements: blueprint six-removal

Change-Id: I6195ceeeed2ebe1586973eaeef7fa9f29698fec2
2022-07-05 17:37:44 +08:00
M V P Nitesh 1cde1a7fe8 Replace six.iteritems() with .items()
1.As mentioned in [1], we should avoid using six.iteritems to achieve
iterators. We can use dict.items instead, as it will return iterators
in PY3 as well. And dict.items/keys will more readable.
2.In py2, the performance about list should be negligible, see the
link [2].
[1] https://wiki.openstack.org/wiki/Python3
[2] http://lists.openstack.org/pipermail/openstack-dev/2015-June/066391.html

Change-Id: Ib7ad61bac89e14561719434085b63cbad7e9a9be
2017-04-20 09:42:45 +00:00
Ronald Bradford 72cf3d1cd6 Graduate to the oslo_utils.fileutils
fileutils has graduated from Oslo Incubator in the oslo.utils library.

Implements: blueprint graduate-fileutils[1]
[1] https://blueprints.launchpad.net/oslo-incubator/+spec/graduate-fileutils

Change-Id: I055e3bb4c19f853865586fd089bab351d945ba72
2016-03-24 14:21:39 -04:00
Andrey Pavlov ed5a664dab py34: fix s3server code
also remove unneeded utf8 function and use xhtml_escapce from
utils everywhere

Change-Id: I05f8c90306ce2c63c89be9e96e4b52d21d5a50bf
2015-09-11 17:44:52 +03:00
Andrey Pavlov f51ca94079 py34: fix iteritems/itervalues using
Change-Id: Id3e3e814448be22184270db57ff43f5f83c4d1c1
2015-09-09 17:16:09 +03:00
Andrey Pavlov 2f967d5ed4 add code for config generation
Change-Id: Ib86b949bb43ca6b5c386b7032a255f06b0f2eab9
2015-08-28 20:15:50 +03:00
Feodor Tersin e4333c0f59 Make S3 server compatible with AWS cli
Change-Id: Ibeb0930db142ce5010e166355181afa711969d52
2015-04-09 16:54:55 +03:00
Feodor Tersin dc08136037 Copy S3 server implmenetation from Nova
Copy S3 server implmenetation and unit tests from Nova.
Add fileutils from oslo-incubator and refresh incubation modules.

Upgrade script doesn't copy buckets content because Nova S3 server
is not intended to be permanent full functionality object storage, but
has to be used temporary to CreateImage operation only.

Change-Id: I7d38b0a8e014dfff8238e7134d837d1074e4dd95
2015-04-01 16:37:46 +03:00