Skip to content

Commit 006730a

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 88055b0 commit 006730a

17 files changed

+20
-9
lines changed

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
# All configuration values have a default; values that are commented out
1212
# serve to show the default.
1313

14+
1415
from __future__ import generator_stop
1516

1617
# -- General configuration ------------------------------------------------
17-
1818
# If your documentation needs a minimal Sphinx version, state it here.
1919
# needs_sphinx = '1.0'
2020

modernize/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
A hack on top of fissix (lib2to3 fork) for modernizing code for hybrid codebases.
33
"""
44

5+
56
from __future__ import generator_stop
67

78
__version__ = "0.9rc1.dev0"

modernize/fixes/fix_dict_six.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Fixer for iterkeys() -> six.iterkeys(), and similarly for iteritems and itervalues.
33
"""
44

5+
56
from __future__ import generator_stop
67

78
# Local imports

modernize/fixes/fix_filter.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Copyright 2008 Armin Ronacher.
22
# Licensed to PSF under a Contributor Agreement.
33

4+
45
from __future__ import generator_stop
56

67
from fissix import fixer_util

modernize/fixes/fix_input_six.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
99
# 2011, 2012, 2013, 2014 Python Software Foundation. All rights reserved.
1010

11+
1112
from __future__ import generator_stop
1213

1314
from fissix import fixer_base, fixer_util

modernize/fixes/fix_itertools_imports_six.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
""" Fixer for imports of itertools.(imap|ifilter|izip|ifilterfalse) """
22

3+
34
from __future__ import generator_stop
45

56
# Local imports

modernize/fixes/fix_itertools_six.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
If itertools is imported as something else (ie: import itertools as it;
66
it.izip(spam, eggs)) method calls will not get fixed.
77
"""
8+
from __future__ import generator_stop
9+
810
# This is a derived work of Lib/lib2to3/fixes/fix_itertools_import.py. That file
911
# is under the copyright of the Python Software Foundation and licensed
1012
# under the Python Software Foundation License 2.
@@ -13,8 +15,6 @@
1315
#
1416
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
1517
# 2011, 2012, 2013 Python Software Foundation. All rights reserved.
16-
from __future__ import generator_stop
17-
1818
# Local imports
1919
from fissix import fixer_base, fixer_util
2020
from fissix.fixer_util import Name

modernize/fixes/fix_map.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Copyright 2008 Armin Ronacher.
22
# Licensed to PSF under a Contributor Agreement.
33

4+
45
from __future__ import generator_stop
56

67
from fissix import fixer_util

modernize/fixes/fix_metaclass.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
This fixer also tries very hard to keep original indenting and spacing
1515
in all those corner cases.
1616
"""
17+
from __future__ import generator_stop
18+
1719
# This is a derived work of Lib/lib2to3/fixes/fix_metaclass.py. That file
1820
# is under the copyright of the Python Software Foundation and licensed
1921
# under the Python Software Foundation License 2.
@@ -22,8 +24,6 @@
2224
#
2325
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
2426
# 2011, 2012, 2013 Python Software Foundation. All rights reserved.
25-
from __future__ import generator_stop
26-
2727
# Local imports
2828
from fissix import fixer_base, fixer_util
2929
from fissix.fixer_util import Call, Comma, Leaf, Name, Node, syms

modernize/fixes/fix_next.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"""Fixer for it.next() -> next(it)"""
22

3+
34
from __future__ import generator_stop
45

56
# Local imports

0 commit comments

Comments
 (0)