File: 7fff707ddf87544616f198155d98e215700b261e39fda3844940ec2aab5a0610.py

package info (click to toggle)
python-executing 2.2.0-0.3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,860 kB
  • sloc: python: 10,235; sh: 48; makefile: 10
file content (21 lines) | stat: -rw-r--r-- 669 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# This sample was generated for the following code mutation detected by mutmut:
# 
# --- tests/deadcode.py
# +++ tests/deadcode.py
# @@ -332,7 +332,7 @@
#              else_dead = self.check_stmts(node.orelse, try_dead)
#              final_dead = self.check_stmts(node.finalbody, deadcode)
#  
# -            deadcode = (handlers_dead and else_dead) or final_dead
# +            deadcode = (handlers_dead or else_dead) or final_dead
#  
#          elif isinstance(node, ast.BoolOp) and isinstance(node.op, ast.And):
#              dead_op = deadcode
# 

def for_filename():
    try:
        return source_cache[filename]
    except KeyError:
        pass
    linecache