10 Commits

Author SHA1 Message Date
Chandan Kumar
0601be1bfd ported tools/*.py scripts to python3
Change-Id: Ib8dcc8b0c77515f8a302ed5bf03dc8283f36414b
2017-06-13 08:04:59 +05:30
Masayuki Igawa
134d9f748b
Introduce flake8-import-order
This commit introduces flake8-import-order to check import orders
automatically. We shouldn't do it manually.

Depends-On: Ia2140f5566ce169b076ffa5c9ebfbdbfc41e5bed
Change-Id: Iff75ebec42b295870edd1c04001adfb17460a682
2017-02-13 17:16:18 +09:00
Yatin Kumbhare
2e2c83a527 Keep py3.X compatibility for urllib
Change-Id: Iba10637688ada66f2e3003cd87bbba7d4db4abc7
Closes-Bug: #1280105
2016-05-30 22:50:15 +05:30
Harshada Mangesh Kakad
b3ecf6534f Use six.StringIO/BytesIO instead of StringIO.StringIO
to keep Python 3.x compatibility, use six.StringIO/BytesIO to
replace StringIO.StringIO

StringIO works for unicode
BytesIO works for bytes

Change-Id: I063d62a4f005084f4088da403f348ad97656ad45
Partial-Bug: #1280100
2015-12-23 01:33:08 -08:00
Matthew Treinish
96e9e88dc0 Enable H407,H305,H307,E122 ignore E123
After bumping the hacking version to the 0.9.x series ignores were
added for several rules. This commit fixes the violations for a subset
of these rules and re-enables the checks.

E123 is ignored because this rule is ignored in the default pep8 by
default, due to a lack of consensus around it.

Change-Id: I8f14cd2ca6afc38d3fe8ee758272071111022896
2014-08-12 17:39:16 -04:00
Masayuki Igawa
e8d31a0b80 Remove vim headers
We don't need to have the vim headers in each source files. We can set
it in our vimrc file instead. Also if set incorrectly, gate (pep8 check)
will catch the mistakes.

More discussions:
http://lists.openstack.org/pipermail/openstack-dev/2013-October/017353.html

Change-Id: I43703e2289212389c7841f44691ae7849ed1f505
Closes-Bug: #1229324
2014-01-20 11:22:45 +09:00
David Kranz
9e3c71780a Accept gzip files in find_stack_traces.py
The server response seems to have changed since this code was originally
written.

Change-Id: Icffc062ce46f59b678fe468560d198567286fe67
2013-10-09 21:51:25 -04:00
Dirk Mueller
1db5db2dc5 Use Python 3.x compatible syntax constructs
Avoid print operator, deprected except and
other things covered by statical checks.

Change-Id: I89f9608b977b2d4567300ec82558284dac347c9a
2013-06-23 20:51:36 +02:00
Sean Dague
70eef03c09 make stack traces tool find individual traces
previously the tool just reprinted out TRACE and ERROR log lines.
Now make it actually collect up TRACE and ERROR into individual
events which will make it easier to cross reference to tempest
tests.

built additional features around stack trace tooling, making it
simpler to find unique events.

Change-Id: Id1fed3343e79e75da3145b5a9c19820b65a0d548
2013-04-09 11:38:50 -04:00
Sean Dague
bcdba0818a add find_stack_traces tool
this is useful to go and collect all the stack traces found for a
particular test run. Helps us easily identify when stack traces
are being generated even on good runs.

Change-Id: Ia5b95be7bc1a425630fba06c7c65cbaa9fa7079f
2013-03-12 15:14:16 -04:00