Skip to content

Commit

Permalink
Up.
Browse files Browse the repository at this point in the history
  • Loading branch information
ionelmc committed Mar 23, 2024
1 parent 3875f40 commit c03de91
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 42 deletions.
2 changes: 1 addition & 1 deletion .cookiecutterrc
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ default_context:
sphinx_docs: 'yes'
sphinx_docs_hosting: https://python-nameless.readthedocs.io/
sphinx_doctest: 'yes'
sphinx_theme: sphinx-rtd-theme
sphinx_theme: pydata-sphinx-theme
test_matrix_separate_coverage: 'no'
tests_inside_package: 'no'
version: 0.1.0
Expand Down
2 changes: 1 addition & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
sphinx>=1.3
sphinx-rtd-theme
pydata-sphinx-theme
18 changes: 0 additions & 18 deletions src/nameless/_nameless.c

This file was deleted.

19 changes: 0 additions & 19 deletions src/nameless/_nameless_build.py

This file was deleted.

4 changes: 2 additions & 2 deletions src/nameless/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@


def main(args):
args = [_ffi.new("char[]", arg) for arg in args]
args = [_ffi.new("char[]", arg.encode()) for arg in args]
result = _lib.main(len(args), _ffi.new("char *[]", args))
if result == _ffi.NULL:
return None
else:
return _ffi.string(result)
return _ffi.string(result).decode()
2 changes: 1 addition & 1 deletion tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@


def test_main():
assert main([b"a", b"bc", b"abc"]) == b"abc"
assert main(["a", "bc", "abc"]) == "abc"

0 comments on commit c03de91

Please sign in to comment.