Skip to content

Commit 25dc2a4

Browse files
authored
Merge pull request #1284 from gpotter2/patch-7
Stupid mistake in #1254
2 parents b6f9697 + 5ed40ce commit 25dc2a4

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)