Skip to content

Commit

Permalink
reverted import (microsoft#1062)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshTrim committed Mar 26, 2024
1 parent 99a2a11 commit e69f9b8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions autogen/code_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
from hashlib import md5
from typing import Any, Callable, Dict, List, Optional, Tuple, Union

from _pytest import python

from autogen import oai

import docker
Expand Down
2 changes: 1 addition & 1 deletion autogen/coding/local_commandline_code_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def execute_code_blocks(self, code_blocks: List[CodeBlock]) -> CommandLineCodeRe
f.write(code)
file_names.append(written_file)

program = sys.executable if _cmd(lang).startswith("python") else _cmd(lang)
program = sys.executable if lang.startswith("python") else _cmd(lang)
cmd = [program, str(written_file.absolute())]

try:
Expand Down

0 comments on commit e69f9b8

Please sign in to comment.