summaryrefslogtreecommitdiff
path: root/scalarfloat.py
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2018-08-18 09:47:28 +0200
committerAnthon van der Neut <anthon@mnt.org>2018-08-18 09:47:28 +0200
commitba6beb48c620f861fcc120e272bf4b6798aff919 (patch)
treeac02a25c3745ea967fa61b4b2d02dad4c0cc9874 /scalarfloat.py
parentdeeb75a3efb4a7ae0ab4b28c8b081d41329865f3 (diff)
downloadruamel.yaml-ba6beb48c620f861fcc120e272bf4b6798aff919.tar.gz
updates for mypy and remove print statements
Diffstat (limited to 'scalarfloat.py')
-rw-r--r--scalarfloat.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/scalarfloat.py b/scalarfloat.py
index 83e0125..65a1a28 100644
--- a/scalarfloat.py
+++ b/scalarfloat.py
@@ -76,8 +76,8 @@ class ScalarFloat(float):
def dump(self, out=sys.stdout):
# type: (Any) -> Any
- print(
- 'ScalarFloat({}| w:{}, p:{}, s:{}, lz:{}|{}, w:{}, s:{})'.format(
+ out.write(
+ 'ScalarFloat({}| w:{}, p:{}, s:{}, lz:{}|{}, w:{}, s:{})\n'.format(
self,
self._width, # type: ignore
self._prec, # type: ignore
@@ -86,8 +86,7 @@ class ScalarFloat(float):
self._exp, # type: ignore
self._e_width, # type: ignore
self._e_sign, # type: ignore
- ),
- file=out,
+ )
)