##// END OF EJS Templates
pycompat: when setting attrs, ensure we use sysstr...
Augie Fackler -
r30086:f3a10896 default
parent child Browse files
Show More
@@ -74,8 +74,10 b' class _pycompatstub(object):'
74
74
75 def _registeraliases(self, origin, items):
75 def _registeraliases(self, origin, items):
76 """Add items that will be populated at the first access"""
76 """Add items that will be populated at the first access"""
77 self._aliases.update((item.replace('_', '').lower(), (origin, item))
77 items = map(sysstr, items)
78 for item in items)
78 self._aliases.update(
79 (item.replace(sysstr('_'), sysstr('')).lower(), (origin, item))
80 for item in items)
79
81
80 def __getattr__(self, name):
82 def __getattr__(self, name):
81 try:
83 try:
General Comments 0
You need to be logged in to leave comments. Login now