~ubuntu-branches/ubuntu/wily/bandit/wily-proposed

« back to all changes in this revision

Viewing changes to examples/multiline-str.py

  • Committer: Package Import Robot
  • Author(s): Dave Walker (Daviey)
  • Date: 2015-07-22 09:01:39 UTC
  • Revision ID: package-import@ubuntu.com-20150722090139-fl0nluy0x8m9ctx4
Tags: upstream-0.12.0
ImportĀ upstreamĀ versionĀ 0.12.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# trigger warn for temp file
 
2
x = """
 
3
      /tmp
 
4
"""
 
5
 
 
6
# no finding
 
7
"abc"
 
8
 
 
9
# no finding, docstring
 
10
def f():
 
11
    """
 
12
    /tmp
 
13
    """
 
14
# trigger warning for tempfile
 
15
def f():
 
16
    x='''
 
17
    /tmp
 
18
    '''
 
19
 
 
20
# trigger warning for tempfile
 
21
def f():
 
22
   x = (
 
23
        'aaa '
 
24
        'bbb '
 
25
        'ccc '
 
26
        'ddd '
 
27
        '/tmp '
 
28
        'xxx '
 
29
        'zzz'
 
30
   )
 
31
   return x