Show More
@@ -41,11 +41,10 b' def _alias(alias, origin, items):' | |||||
41 |
|
41 | |||
42 | copies items from origin to alias |
|
42 | copies items from origin to alias | |
43 | """ |
|
43 | """ | |
44 | def hgcase(item): |
|
|||
45 | return item.replace('_', '').lower() |
|
|||
46 | for item in items: |
|
44 | for item in items: | |
47 | try: |
|
45 | try: | |
48 | setattr(alias, hgcase(item), getattr(origin, item)) |
|
46 | lcase = item.replace('_', '').lower() | |
|
47 | setattr(alias, lcase, getattr(origin, item)) | |||
49 | except AttributeError: |
|
48 | except AttributeError: | |
50 | pass |
|
49 | pass | |
51 |
|
50 |
General Comments 0
You need to be logged in to leave comments.
Login now