mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 16:31:02 +03:00
04508d7f1c
5f4c097a17d2 changed _updatewrapper() to copy the __name__ attribute, but not all callable objects has __name__. Spotted by loading mq with extdiff.
22 lines
600 B
Plaintext
22 lines
600 B
Plaintext
wrap 0: [0, 'orig']
|
|
wrap 1: [1, 0, 'orig']
|
|
wrap 2: [2, 1, 0, 'orig']
|
|
wrap 3: [3, 2, 1, 0, 'orig']
|
|
wrap 4: [4, 3, 2, 1, 0, 'orig']
|
|
wrap 0: [0, 4, 3, 2, 1, 0, 'orig']
|
|
unwrap 3: 3: [0, 4, 2, 1, 0, 'orig']
|
|
unwrap -: 0: [4, 2, 1, 0, 'orig']
|
|
unwrap 0: 0: [4, 2, 1, 'orig']
|
|
unwrap 4: 4: [2, 1, 'orig']
|
|
unwrap 0: -: ValueError
|
|
unwrap 2: 2: [1, 'orig']
|
|
unwrap 1: 1: ['orig']
|
|
unwrap -: -: IndexError
|
|
context manager ['orig']
|
|
context manager [1, 'orig']
|
|
context manager [0, 1, 'orig']
|
|
context manager [2, 0, 1, 'orig']
|
|
context manager [2, 1, 'orig']
|
|
context manager [2, 'orig']
|
|
wrap callable object [0, 'orig']
|