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