From b03421d087bf671de456e008e87c435634a7708d Mon Sep 17 00:00:00 2001 From: Araq Date: Wed, 10 Jul 2019 16:00:05 +0200 Subject: fixes #11683 --- compiler/transf.nim | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'compiler/transf.nim') diff --git a/compiler/transf.nim b/compiler/transf.nim index 21295662a..4dd348742 100644 --- a/compiler/transf.nim +++ b/compiler/transf.nim @@ -803,7 +803,6 @@ proc transformCall(c: PTransf, n: PNode): PTransNode = result = s.PTransNode proc transformExceptBranch(c: PTransf, n: PNode): PTransNode = - result = transformSons(c, n) if n[0].isInfixAs() and not isImportedException(n[0][1].typ, c.graph.config): let excTypeNode = n[0][1] let actions = newTransNode(nkStmtListExpr, n[1], 2) @@ -825,12 +824,14 @@ proc transformExceptBranch(c: PTransf, n: PNode): PTransNode = letSection[0] = identDefs # Place the let statement and body of the 'except' branch into new stmtList. actions[0] = letSection - actions[1] = transformSons(c, n[1]) + actions[1] = transform(c, n[1]) # Overwrite 'except' branch body with our stmtList. - result[1] = actions - + result = newTransNode(nkExceptBranch, n[1].info, 2) # Replace the `Exception as foobar` with just `Exception`. - result[0] = result[0][1] + result[0] = transform(c, n[0][1]) + result[1] = actions + else: + result = transformSons(c, n) proc dontInlineConstant(orig, cnst: PNode): bool {.inline.} = # symbols that expand to a complex constant (array, etc.) should not be -- cgit 1.4.1-2-gfad0 tree commit diff stats
path: root/ranger/gui/widgets/browserview.py
blob: 0f467be229ebc628de3e9f2da395c90836f8578a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172