Python lib2to3.fixer_util.consuming_calls() Examples
The following are 30
code examples of lib2to3.fixer_util.consuming_calls().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
lib2to3.fixer_util
, or try the search function
.
Example #1
Source File: test_fixers.py From datafari with Apache License 2.0 | 5 votes |
def test_unchanged(self): for wrapper in fixer_util.consuming_calls: s = "s = %s(d.keys())" % wrapper self.unchanged(s) s = "s = %s(d.values())" % wrapper self.unchanged(s) s = "s = %s(d.items())" % wrapper self.unchanged(s)
Example #2
Source File: test_fixers.py From CTFCrackTools with GNU General Public License v3.0 | 5 votes |
def test_in_consuming_context(self): for call in fixer_util.consuming_calls: self.unchanged("a = %s(range(10))" % call)
Example #3
Source File: test_fixers.py From CTFCrackTools with GNU General Public License v3.0 | 5 votes |
def test_unchanged(self): for wrapper in fixer_util.consuming_calls: s = "s = %s(d.keys())" % wrapper self.unchanged(s) s = "s = %s(d.values())" % wrapper self.unchanged(s) s = "s = %s(d.items())" % wrapper self.unchanged(s)
Example #4
Source File: test_fixers.py From CTFCrackTools with GNU General Public License v3.0 | 5 votes |
def test_in_consuming_context(self): for call in fixer_util.consuming_calls: self.unchanged("a = %s(range(10))" % call)
Example #5
Source File: test_fixers.py From CTFCrackTools with GNU General Public License v3.0 | 5 votes |
def test_unchanged(self): for wrapper in fixer_util.consuming_calls: s = "s = %s(d.keys())" % wrapper self.unchanged(s) s = "s = %s(d.values())" % wrapper self.unchanged(s) s = "s = %s(d.items())" % wrapper self.unchanged(s)
Example #6
Source File: test_fixers.py From android_universal with MIT License | 5 votes |
def test_in_consuming_context(self): for call in fixer_util.consuming_calls: self.unchanged("a = %s(range(10))" % call)
Example #7
Source File: test_fixers.py From android_universal with MIT License | 5 votes |
def test_unchanged(self): for wrapper in fixer_util.consuming_calls: s = "s = %s(d.keys())" % wrapper self.unchanged(s) s = "s = %s(d.values())" % wrapper self.unchanged(s) s = "s = %s(d.items())" % wrapper self.unchanged(s)
Example #8
Source File: test_fixers.py From CTFCrackTools-V2 with GNU General Public License v3.0 | 5 votes |
def test_in_consuming_context(self): for call in fixer_util.consuming_calls: self.unchanged("a = %s(range(10))" % call)
Example #9
Source File: test_fixers.py From CTFCrackTools-V2 with GNU General Public License v3.0 | 5 votes |
def test_unchanged(self): for wrapper in fixer_util.consuming_calls: s = "s = %s(d.keys())" % wrapper self.unchanged(s) s = "s = %s(d.values())" % wrapper self.unchanged(s) s = "s = %s(d.items())" % wrapper self.unchanged(s)
Example #10
Source File: test_fixers.py From CTFCrackTools-V2 with GNU General Public License v3.0 | 5 votes |
def test_in_consuming_context(self): for call in fixer_util.consuming_calls: self.unchanged("a = %s(range(10))" % call)
Example #11
Source File: test_fixers.py From CTFCrackTools-V2 with GNU General Public License v3.0 | 5 votes |
def test_unchanged(self): for wrapper in fixer_util.consuming_calls: s = "s = %s(d.keys())" % wrapper self.unchanged(s) s = "s = %s(d.values())" % wrapper self.unchanged(s) s = "s = %s(d.items())" % wrapper self.unchanged(s)
Example #12
Source File: test_fixers.py From odoo13-x64 with GNU General Public License v3.0 | 5 votes |
def test_in_consuming_context(self): for call in fixer_util.consuming_calls: self.unchanged("a = %s(range(10))" % call)
Example #13
Source File: test_fixers.py From odoo13-x64 with GNU General Public License v3.0 | 5 votes |
def test_unchanged(self): for wrapper in fixer_util.consuming_calls: s = "s = %s(d.keys())" % wrapper self.unchanged(s) s = "s = %s(d.values())" % wrapper self.unchanged(s) s = "s = %s(d.items())" % wrapper self.unchanged(s)
Example #14
Source File: test_fixers.py From Project-New-Reign---Nemesis-Main with GNU General Public License v3.0 | 5 votes |
def test_in_consuming_context(self): for call in fixer_util.consuming_calls: self.unchanged("a = %s(range(10))" % call)
Example #15
Source File: test_fixers.py From Project-New-Reign---Nemesis-Main with GNU General Public License v3.0 | 5 votes |
def test_unchanged(self): for wrapper in fixer_util.consuming_calls: s = "s = %s(d.keys())" % wrapper self.unchanged(s) s = "s = %s(d.values())" % wrapper self.unchanged(s) s = "s = %s(d.items())" % wrapper self.unchanged(s)
Example #16
Source File: test_fixers.py From datafari with Apache License 2.0 | 5 votes |
def test_in_consuming_context(self): for call in fixer_util.consuming_calls: self.unchanged("a = %s(range(10))" % call)
Example #17
Source File: test_fixers.py From misp42splunk with GNU Lesser General Public License v3.0 | 5 votes |
def test_unchanged(self): for wrapper in fixer_util.consuming_calls: s = "s = %s(d.keys())" % wrapper self.unchanged(s) s = "s = %s(d.values())" % wrapper self.unchanged(s) s = "s = %s(d.items())" % wrapper self.unchanged(s)
Example #18
Source File: test_fixers.py From ironpython3 with Apache License 2.0 | 5 votes |
def test_in_consuming_context(self): for call in fixer_util.consuming_calls: self.unchanged("a = %s(range(10))" % call)
Example #19
Source File: test_fixers.py From ironpython3 with Apache License 2.0 | 5 votes |
def test_unchanged(self): for wrapper in fixer_util.consuming_calls: s = "s = %s(d.keys())" % wrapper self.unchanged(s) s = "s = %s(d.values())" % wrapper self.unchanged(s) s = "s = %s(d.items())" % wrapper self.unchanged(s)
Example #20
Source File: test_fixers.py From Imogen with MIT License | 5 votes |
def test_in_consuming_context(self): for call in fixer_util.consuming_calls: self.unchanged("a = %s(range(10))" % call)
Example #21
Source File: test_fixers.py From Imogen with MIT License | 5 votes |
def test_unchanged(self): for wrapper in fixer_util.consuming_calls: s = "s = %s(d.keys())" % wrapper self.unchanged(s) s = "s = %s(d.values())" % wrapper self.unchanged(s) s = "s = %s(d.items())" % wrapper self.unchanged(s)
Example #22
Source File: test_fixers.py From Fluid-Designer with GNU General Public License v3.0 | 5 votes |
def test_in_consuming_context(self): for call in fixer_util.consuming_calls: self.unchanged("a = %s(range(10))" % call)
Example #23
Source File: test_fixers.py From Fluid-Designer with GNU General Public License v3.0 | 5 votes |
def test_unchanged(self): for wrapper in fixer_util.consuming_calls: s = "s = %s(d.keys())" % wrapper self.unchanged(s) s = "s = %s(d.values())" % wrapper self.unchanged(s) s = "s = %s(d.items())" % wrapper self.unchanged(s)
Example #24
Source File: test_fixers.py From oss-ftp with MIT License | 5 votes |
def test_in_consuming_context(self): for call in fixer_util.consuming_calls: self.unchanged("a = %s(range(10))" % call)
Example #25
Source File: test_fixers.py From oss-ftp with MIT License | 5 votes |
def test_unchanged(self): for wrapper in fixer_util.consuming_calls: s = "s = %s(d.keys())" % wrapper self.unchanged(s) s = "s = %s(d.values())" % wrapper self.unchanged(s) s = "s = %s(d.items())" % wrapper self.unchanged(s)
Example #26
Source File: test_fixers.py From Computable with MIT License | 5 votes |
def test_in_consuming_context(self): for call in fixer_util.consuming_calls: self.unchanged("a = %s(range(10))" % call)
Example #27
Source File: test_fixers.py From Computable with MIT License | 5 votes |
def test_unchanged(self): for wrapper in fixer_util.consuming_calls: s = "s = %s(d.keys())" % wrapper self.unchanged(s) s = "s = %s(d.values())" % wrapper self.unchanged(s) s = "s = %s(d.items())" % wrapper self.unchanged(s)
Example #28
Source File: test_fixers.py From ironpython2 with Apache License 2.0 | 5 votes |
def test_in_consuming_context(self): for call in fixer_util.consuming_calls: self.unchanged("a = %s(range(10))" % call)
Example #29
Source File: test_fixers.py From ironpython2 with Apache License 2.0 | 5 votes |
def test_unchanged(self): for wrapper in fixer_util.consuming_calls: s = "s = %s(d.keys())" % wrapper self.unchanged(s) s = "s = %s(d.values())" % wrapper self.unchanged(s) s = "s = %s(d.items())" % wrapper self.unchanged(s)
Example #30
Source File: test_fixers.py From misp42splunk with GNU Lesser General Public License v3.0 | 5 votes |
def test_in_consuming_context(self): for call in fixer_util.consuming_calls: self.unchanged("a = %s(range(10))" % call)