Warning:
Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.
| File tg.util.patch,
421 bytes
(added by Tomoyuki Kano, 2 years ago) |
|
|
-
|
a
|
b
|
|
| 64 | 64 | """ |
| 65 | 65 | |
| 66 | 66 | match = prefix + "." |
| | 67 | n = len(match) |
| 67 | 68 | |
| 68 | | new_dict = Bunch([(key.lstrip(match), dictionary[key]) |
| | 69 | new_dict = Bunch([(key[n:], dictionary[key]) |
| 69 | 70 | for key in dictionary.iterkeys() |
| 70 | 71 | if key.startswith(match)]) |
| 71 | 72 | if new_dict: |
Download in other formats: