[ create a new paste ] login | about

Link: http://codepad.org/Mq1eZyoE    [ raw code | fork ]

greg - Python, pasted on Jun 10:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# wrong line!

import string

x = "string.make" + "trans('fd', 'f')"

# this prints the deprecation warning on the wrong line
try:
    exec(x)
except:
    pass


#######

t.py:1: DeprecationWarning: string.maketrans is deprecated, use bytes.maketrans instead
  # wrong line!


Create a new paste based on this one


Comments: