Skip to content

Commit 13921df

Browse files
authored
Fix Python syntax error in setup_origin.py (d2l-ai#1005)
% `flake8 . --count --select=E9,F63,F7,F82,Y --show-source --statistics` ``` ./d2l-zh/setup_origin.py:3:13: E999 SyntaxError: invalid decimal literal commit: 9e55a9c ^ ./d2l-zh/d2l/tensorflow.py:727:18: F821 undefined name 'get_params' params = get_params(len(vocab), num_hiddens) ^ 1 E999 SyntaxError: invalid decimal literal 1 F821 undefined name 'get_params' 2 ```
1 parent 8703b67 commit 13921df

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

setup_origin.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
"""
12
---
23
source: https://github.com/d2l-ai/d2l-en/blob/master/setup.py
34
commit: 9e55a9c
45
---
6+
"""
57

68
from setuptools import setup, find_packages
79
import d2l

0 commit comments

Comments
 (0)