summaryrefslogtreecommitdiffstats
path: root/language.py
diff options
context:
space:
mode:
authorsopwith <sopwith>2005-03-30 21:50:05 +0000
committersopwith <sopwith>2005-03-30 21:50:05 +0000
commit41a46fe6dbecc31c90e830423bb16b3f7a5037be (patch)
tree91acc2bfab3fdeb1041cb493d79e5d00b5e70e89 /language.py
parentff8887d7b0444db5d68aaac9e97ddf3e80608106 (diff)
downloadanaconda-41a46fe6dbecc31c90e830423bb16b3f7a5037be.tar.gz
anaconda-41a46fe6dbecc31c90e830423bb16b3f7a5037be.tar.xz
anaconda-41a46fe6dbecc31c90e830423bb16b3f7a5037be.zip
s/str/astring/ - as the name of the string type, 'str' is a pseudo-reserved word in python.
Diffstat (limited to 'language.py')
-rw-r--r--language.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/language.py b/language.py
index 8f9851154..a9a7fb2ca 100644
--- a/language.py
+++ b/language.py
@@ -24,18 +24,18 @@ from rhpl.log import log
# Converts a single language into a "language search path". For example,
# fr_FR.utf8@euro would become "fr_FR.utf8@eueo fr_FR.utf8 fr_FR fr"
-def expandLangs(str):
- langs = [str]
+def expandLangs(astring):
+ langs = [astring]
# remove charset ...
- if '.' in str:
- langs.append(string.split(str, '.')[0])
+ if '.' in astring:
+ langs.append(string.split(astring, '.')[0])
- if '@' in str:
- langs.append(string.split(str, '@')[0])
+ if '@' in astring:
+ langs.append(string.split(astring, '@')[0])
# also add 2 character language code ...
- if len(str) > 2:
- langs.append(str[:2])
+ if len(astring) > 2:
+ langs.append(astring[:2])
return langs