Ville Skyttä
e8a8be5788
Handle more file closing with "with"
2016-07-07 18:53:34 +03:00
Takayuki Shimizukawa
6beeeeb827
remove unnecessary list()
wrappers. In some places, I replaced iterable.sort()
with sorted(iterable)
.
2014-05-25 09:25:02 +09:00
Takayuki Shimizukawa
2d1549b35a
wrap py3 iterators with list() for each places that expect a list object. refs #1350 .
2014-04-30 23:25:44 +09:00
Takayuki Shimizukawa
1e58062692
remove 'six' name except importing line.
2014-04-30 21:30:46 +09:00
Takayuki Shimizukawa
c3c879f2c6
use six privided functions/classes to support py2/py3 in one source. refs #1350 .
2014-04-29 19:59:58 +09:00
Georg Brandl
b1a9f7548b
consistency nits
2014-01-22 18:15:42 +01:00
Dmitry Shachnev
ce2185ce27
Modernize the code now that Python 2.5 is no longer supported
...
- Use print function instead of print statement;
- Use new exception handling;
- Use in operator instead of has_key();
- Do not use tuple arguments in functions;
- Other miscellaneous improvements.
This is based on output of `futurize --stage1`, with some
manual corrections.
2014-01-19 14:17:10 +04:00
Tuomas Räsänen
961b2fb225
Fixed long lines and trailing whitespaces.
2009-05-05 01:03:05 +03:00
Georg Brandl
ae1c7f9d56
Fix a few stylistic nits.
2009-04-13 08:35:05 +00:00
Georg Brandl
9618b0c78a
Add makefile target for easy test coverage checking.
2009-02-22 19:00:36 +01:00