Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b15ec09

Browse files
committed
Reduce scope of feature
1 parent c1f213e commit b15ec09

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Python/future.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,14 @@ static int
1313
future_check_features(PyFutureFeatures *ff, stmt_ty s, const char *filename)
1414
{
1515
int i;
16-
const char *feature;
1716
asdl_seq *names;
1817

1918
assert(s->kind == ImportFrom_kind);
2019

2120
names = s->v.ImportFrom.names;
2221
for (i = 0; i < asdl_seq_LEN(names); i++) {
2322
alias_ty name = asdl_seq_GET(names, i);
24-
feature = PyString_AsString(name->name);
23+
const char *feature = PyString_AsString(name->name);
2524
if (!feature)
2625
return 0;
2726
if (strcmp(feature, FUTURE_NESTED_SCOPES) == 0) {

0 commit comments

Comments
 (0)