2: -12,
}
- fileno = out.fileno()
+ try:
+ fileno = out.fileno()
+ except AttributeError:
+ # If the output stream doesn't have a fileno, it's virtual
+ return False
if fileno not in WIN_OUTPUT_IDS:
return False
return -1
return q
+
+DEFAULT_OUTTMPL = '%(title)s-%(id)s.%(ext)s'