mirror of
https://github.com/ArthurDanjou/handson-ml3.git
synced 2026-01-14 12:14:36 +01:00
Remove redundant parentheses
This commit is contained in:
@@ -850,7 +850,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"source": [
|
"source": [
|
||||||
"if (hasattr(f.data, \"tobytes\")):\n",
|
"if hasattr(f.data, \"tobytes\"):\n",
|
||||||
" data_bytes = f.data.tobytes() # python 3\n",
|
" data_bytes = f.data.tobytes() # python 3\n",
|
||||||
"else:\n",
|
"else:\n",
|
||||||
" data_bytes = memoryview(f.data).tobytes() # python 2\n",
|
" data_bytes = memoryview(f.data).tobytes() # python 2\n",
|
||||||
|
|||||||
Reference in New Issue
Block a user