[Frugalware-darcs] vmexam: python/dict.py: lang variable is now optional

VMiklos vmiklos at frugalware.org
Tue Jun 12 18:25:46 CEST 2007


Darcsweb-Url: http://darcs.frugalware.org/darcsweb/darcsweb.cgi?r=vmexam;a=darcs_commitdiff;h=20070612162444-e2957-b508302f44c117cfa138ddc3fb6cfa9d9ac4c81f.gz;

[python/dict.py: lang variable is now optional
VMiklos <vmiklos at frugalware.org>**20070612162444] {
hunk ./python/dict.py 13
-if sys.argv[1] == "hu":
-	url = "http://szotar.sztaki.hu/dict_search.php?S=W&L=HUN%3AENG%3AEngHunDict&W=" + sys.argv[2]
+if len(sys.argv) > 2:
+	lang = sys.argv[1]
+	word = sys.argv[2]
hunk ./python/dict.py 17
-	url = "http://szotar.sztaki.hu/dict_search.php?S=W&W=" + sys.argv[2]
+	lang = "en"
+	word = sys.argv[1]
+
+if lang == "hu":
+	url = "http://szotar.sztaki.hu/dict_search.php?S=W&L=HUN%3AENG%3AEngHunDict&W=" + word
+else:
+	url = "http://szotar.sztaki.hu/dict_search.php?S=W&W=" + word
}


More information about the Frugalware-darcs mailing list