Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. temp = tempfile.NamedTemporaryFile().name
  2. f = open(temp, 'w') # error occurs on this line
  3.  
  4. f = tempfile.NamedTemporaryFile(mode='w') # open file
  5. temp = f.name # get name (if needed)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement