Skip to content

Commit

Permalink
Fix doctests and newline in printing
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarbenjamin committed Nov 1, 2023
1 parent e31ff65 commit 5333f75
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions doc/source/general.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ The user can mutate the properties directly, for example::
>>> fmpq(3,2)
fmpq(3,2)
>>> ctx.pretty = True
>>> fmpq(3,2)
3/2

Calling ``ctx.default()`` restores the default settings.
Expand Down
2 changes: 1 addition & 1 deletion src/flint/flint_base/flint_context.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ cdef class FlintContext:
"prec = %-8s # real/complex precision (in bits)\n" \
"dps = %-8s # real/complex precision (in digits)\n" \
"cap = %-8s # power series precision\n" \
"threads = %-8s # max number of threads used internally\n" % \
"threads = %-8s # max number of threads used internally" % \
(self.pretty, self.unicode, self.prec, self.dps, self.cap, self.threads)

def cleanup(self):
Expand Down
2 changes: 1 addition & 1 deletion src/flint/test/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def raises(f, exception):
prec = 53 # real/complex precision (in bits)
dps = 15 # real/complex precision (in digits)
cap = 10 # power series precision
threads = 1 # max number of threads used internally
threads = 1 # max number of threads used internally\
"""

def test_pyflint():
Expand Down

0 comments on commit 5333f75

Please sign in to comment.