Commit 0ceedbd
committed
Simplify filename tracking in FT2Font.
We don't need to separately track (and maintain refcounts) for
PyFT2Font.fname; we can simply infer it from py_file (the file object)
as needed. Note that if FT2Font was directly constructed with a
file-like arg, the fname attribute (both previously and with this PR) is
the file-like, not its name.1 parent 8a8dd90 commit 0ceedbd
1 file changed
+5
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
261 | | - | |
262 | 261 | | |
263 | 262 | | |
264 | 263 | | |
| |||
317 | 316 | | |
318 | 317 | | |
319 | 318 | | |
320 | | - | |
321 | 319 | | |
322 | 320 | | |
323 | 321 | | |
| |||
408 | 406 | | |
409 | 407 | | |
410 | 408 | | |
411 | | - | |
412 | | - | |
413 | | - | |
414 | 409 | | |
415 | 410 | | |
416 | 411 | | |
| |||
419 | 414 | | |
420 | 415 | | |
421 | 416 | | |
422 | | - | |
423 | 417 | | |
424 | 418 | | |
425 | 419 | | |
| |||
1420 | 1414 | | |
1421 | 1415 | | |
1422 | 1416 | | |
1423 | | - | |
1424 | | - | |
1425 | | - | |
| 1417 | + | |
| 1418 | + | |
| 1419 | + | |
| 1420 | + | |
| 1421 | + | |
1426 | 1422 | | |
1427 | | - | |
1428 | | - | |
1429 | 1423 | | |
1430 | 1424 | | |
1431 | 1425 | | |
| |||
0 commit comments