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