/usr/lib/python2.7/dist-packages/formencode/fieldstorage.py is in python-formencode 1.2.6-1ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## FormEncode, a Form processor
## Copyright (C) 2003, Ian Bicking <ianb@colorstudy.com>
"""
Wrapper class for use with cgi.FieldStorage types for file uploads
"""
import cgi
def convert_fieldstorage(fs):
if fs.filename:
return fs
else:
return None
|