xmyshell 0.2.3__tar.gz → 0.2.5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. {xmyshell-0.2.3/xmyshell.egg-info → xmyshell-0.2.5}/PKG-INFO +1 -1
  2. {xmyshell-0.2.3 → xmyshell-0.2.5}/pyproject.toml +1 -1
  3. {xmyshell-0.2.3 → xmyshell-0.2.5}/xmyshell/environment.py +2 -2
  4. {xmyshell-0.2.3 → xmyshell-0.2.5}/xmyshell/kernel.py +1 -1
  5. {xmyshell-0.2.3 → xmyshell-0.2.5/xmyshell.egg-info}/PKG-INFO +1 -1
  6. {xmyshell-0.2.3 → xmyshell-0.2.5}/LICENSE +0 -0
  7. {xmyshell-0.2.3 → xmyshell-0.2.5}/README.md +0 -0
  8. {xmyshell-0.2.3 → xmyshell-0.2.5}/setup.cfg +0 -0
  9. {xmyshell-0.2.3 → xmyshell-0.2.5}/xmyshell/__init__.py +0 -0
  10. {xmyshell-0.2.3 → xmyshell-0.2.5}/xmyshell/__main__.py +0 -0
  11. {xmyshell-0.2.3 → xmyshell-0.2.5}/xmyshell/completer.py +0 -0
  12. {xmyshell-0.2.3 → xmyshell-0.2.5}/xmyshell/data/commands.json +0 -0
  13. {xmyshell-0.2.3 → xmyshell-0.2.5}/xmyshell/init.py +0 -0
  14. {xmyshell-0.2.3 → xmyshell-0.2.5}/xmyshell/keybindings.py +0 -0
  15. {xmyshell-0.2.3 → xmyshell-0.2.5}/xmyshell/lexer.py +0 -0
  16. {xmyshell-0.2.3 → xmyshell-0.2.5}/xmyshell/main.py +0 -0
  17. {xmyshell-0.2.3 → xmyshell-0.2.5}/xmyshell/meta.py +0 -0
  18. {xmyshell-0.2.3 → xmyshell-0.2.5}/xmyshell/themes.py +0 -0
  19. {xmyshell-0.2.3 → xmyshell-0.2.5}/xmyshell/update.py +0 -0
  20. {xmyshell-0.2.3 → xmyshell-0.2.5}/xmyshell/utils.py +0 -0
  21. {xmyshell-0.2.3 → xmyshell-0.2.5}/xmyshell.egg-info/SOURCES.txt +0 -0
  22. {xmyshell-0.2.3 → xmyshell-0.2.5}/xmyshell.egg-info/dependency_links.txt +0 -0
  23. {xmyshell-0.2.3 → xmyshell-0.2.5}/xmyshell.egg-info/entry_points.txt +0 -0
  24. {xmyshell-0.2.3 → xmyshell-0.2.5}/xmyshell.egg-info/requires.txt +0 -0
  25. {xmyshell-0.2.3 → xmyshell-0.2.5}/xmyshell.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xmyshell
3
- Version: 0.2.3
3
+ Version: 0.2.5
4
4
  Summary: XmyShell is a shell-like tool built on top of prompt_toolkit which provides a persistent Python runtime.
5
5
  Requires-Python: >=3.12
6
6
  Description-Content-Type: text/markdown
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "xmyshell"
3
- version = "0.2.3"
3
+ version = "0.2.5"
4
4
  description = "XmyShell is a shell-like tool built on top of prompt_toolkit which provides a persistent Python runtime."
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.12"
@@ -13,10 +13,10 @@ init_environ: dict[str, str] = dict(os.environ)
13
13
 
14
14
 
15
15
  def xmyshell_alias(altname: str, target: str) -> None:
16
- aliases.update({altname: target})
16
+ aliases.update({str(altname): str(target)})
17
17
 
18
18
  def xmyshell_unalias(altname: str) -> None:
19
- aliases.pop(altname)
19
+ aliases.pop(altname, None)
20
20
 
21
21
 
22
22
  _init_namespace: dict[str, Any] = {
@@ -58,7 +58,7 @@ def pyeval(cmd_line: str) -> str:
58
58
  val, (str, bytes, bytearray, memoryview)
59
59
  ) and isinstance(val, (Sequence, Generator)):
60
60
  val = shlex.join(str(ele) for ele in val)
61
- result.append(str(val) if val is not None else '')
61
+ result.append(str(val).replace("\n", " ") if val is not None else '')
62
62
  except Exception as e:
63
63
  pywarning(f"An error occured when unfolding {expr!r}, using original string instead"
64
64
  f"\n{type(e).__name__}: {e}")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xmyshell
3
- Version: 0.2.3
3
+ Version: 0.2.5
4
4
  Summary: XmyShell is a shell-like tool built on top of prompt_toolkit which provides a persistent Python runtime.
5
5
  Requires-Python: >=3.12
6
6
  Description-Content-Type: text/markdown
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes