Skip to content

Commit 5ed40ce

Browse files
committed
Stupid mistake
1 parent 4fc9393 commit 5ed40ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scapy/packet.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -503,9 +503,9 @@ def psdump(self, filename=None, **kargs):
503503
"""
504504
canvas = self.canvas_dump(**kargs)
505505
if filename is None:
506-
fname = WINDOWS and get_temp_file(autoext=".eps")
506+
fname = get_temp_file(autoext=".eps")
507507
canvas.writeEPSfile(fname)
508-
if conf.prog.psreader is None:
508+
if WINDOWS and conf.prog.psreader is None:
509509
os.startfile(fname)
510510
else:
511511
with ContextManagerSubprocess("psdump()", conf.prog.psreader):

0 commit comments

Comments
 (0)