Skip to content

Commit 51b3b09

Browse files
committed
Small fixes
1 parent 788c565 commit 51b3b09

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Lib/profiling/sampling/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ def _validate_args(args, parser):
579579
parser: ArgumentParser instance for error reporting
580580
"""
581581
# Replay command has minimal validation
582-
if args.command == "replay":
582+
if getattr(args, 'command', None) == "replay":
583583
# Can't replay to binary format
584584
if args.format == "binary":
585585
parser.error("Cannot replay to binary format. Use a different output format.")

Modules/_remote_debugging/_remote_debugging.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
#define Py_REMOTE_DEBUGGING_H
1010

1111
/* _GNU_SOURCE must be defined before any system headers */
12+
#ifndef _GNU_SOURCE
1213
#define _GNU_SOURCE
14+
#endif
1315

1416
#ifdef __cplusplus
1517
extern "C" {

0 commit comments

Comments
 (0)