Skip to content

Commit 58aa50b

Browse files
committed
Format
1 parent cb01cdd commit 58aa50b

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

lib/pythonx.ex

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -285,12 +285,12 @@ defmodule Pythonx do
285285

286286
globals_entries =
287287
for name <- referenced,
288-
name_atom = String.to_atom(name),
289-
# We only reference variables that are actually defined. This
290-
# way, if an undefined variable is referenced in the Python
291-
# code, it results in an informative Python error, rather than
292-
# Elixir compile error.
293-
Map.has_key?(versioned_vars, {name_atom, nil}) do
288+
name_atom = String.to_atom(name),
289+
# We only reference variables that are actually defined. This
290+
# way, if an undefined variable is referenced in the Python
291+
# code, it results in an informative Python error, rather than
292+
# Elixir compile error.
293+
Map.has_key?(versioned_vars, {name_atom, nil}) do
294294
{name, {name_atom, [], nil}}
295295
end
296296

test/pythonx_test.exs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -386,9 +386,7 @@ defmodule PythonxTest do
386386
''',
387387
[]
388388
)
389-
390-
end
391-
389+
end
392390
end
393391

394392
test "global redefinition" do

0 commit comments

Comments
 (0)