Skip to content

Commit 153d0ee

Browse files
ShaharNavehyouknowone
authored andcommitted
Revert "Use ruff for Expr unparsing (RustPython#6124)"
This reverts commit 0fb7d0f.
1 parent f22aed2 commit 153d0ee

16 files changed

+147
-179
lines changed

Cargo.lock

Lines changed: 0 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,6 @@ rustpython-wtf8 = { path = "wtf8", version = "0.4.0" }
159159
rustpython-doc = { git = "https://github.com/RustPython/__doc__", tag = "0.3.0", version = "0.3.0" }
160160

161161
ruff_python_parser = { git = "https://github.com/astral-sh/ruff.git", tag = "0.14.1" }
162-
ruff_python_codegen = { git = "https://github.com/astral-sh/ruff.git", tag = "0.14.1" }
163162
ruff_python_ast = { git = "https://github.com/astral-sh/ruff.git", tag = "0.14.1" }
164163
ruff_text_size = { git = "https://github.com/astral-sh/ruff.git", tag = "0.14.1" }
165164
ruff_source_file = { git = "https://github.com/astral-sh/ruff.git", tag = "0.14.1" }
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
"""This is a test"""
2+
from __future__ import nested_scopes
3+
from __future__ import rested_snopes
4+
5+
def f(x):
6+
def g(y):
7+
return x + y
8+
return g
9+
10+
result = f(2)(4)
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
"""This is a test"""
2+
import __future__
3+
from __future__ import nested_scopes
4+
5+
def f(x):
6+
def g(y):
7+
return x + y
8+
return g
9+
10+
result = f(2)(4)
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
"""This is a test"""
2+
from __future__ import nested_scopes
3+
import foo
4+
from __future__ import nested_scopes
5+
6+
7+
def f(x):
8+
def g(y):
9+
return x + y
10+
return g
11+
12+
result = f(2)(4)
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
"""This is a test"""
2+
"this isn't a doc string"
3+
from __future__ import nested_scopes
4+
5+
def f(x):
6+
def g(y):
7+
return x + y
8+
return g
9+
10+
result = f(2)(4)
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
"""This is a test"""
2+
3+
from __future__ import nested_scopes; import string; from __future__ import \
4+
nested_scopes
5+
6+
def f(x):
7+
def g(y):
8+
return x + y
9+
return g
10+
11+
result = f(2)(4)
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
"""This is a test"""
2+
3+
from __future__ import *
4+
5+
def f(x):
6+
def g(y):
7+
return x + y
8+
return g
9+
10+
print(f(2)(4))
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
"""This is a test"""
2+
3+
from __future__ import nested_scopes, braces
4+
5+
def f(x):
6+
def g(y):
7+
return x + y
8+
return g
9+
10+
print(f(2)(4))

0 commit comments

Comments
 (0)