The following commit has been merged in the master branch:
commit 27d6ed75782ab671f02caf17e57b959550b918a2
Author: Akshita Jha <[email protected]>
Date:   Mon Jul 27 20:51:18 2015 +0530

    Modify blendslanguages.py : Make blendslanguages.py pep8 complaint

diff --git a/webtools_py3/blendslanguages.py b/webtools_py3/blendslanguages.py
index 2dfac0f..be03aa9 100644
--- a/webtools_py3/blendslanguages.py
+++ b/webtools_py3/blendslanguages.py
@@ -6,34 +6,64 @@
 
 from genshi import Markup
 
-# The keys of the following dictionary are used to address the translation 
files of DDTP
+# The keys of the following dictionary are used to
+# address the translation files of DDTP
 # The values contain dictionaries in turn with the following meaning:
 #  'short'    = shortcut of language as extension of the output files
 #  'htaccess' = language definition in htaccess
 #  'title'    = English name of the language used in title attribut of link
 #  'printed'  = printed name for links
-language_dict = { 'en'    : {'short':'en', 'htaccess':'en'   , 
'title':'English',         'printed':Markup('English')},
-                  'cs'    : {'short':'cs', 'htaccess':'cs'   , 
'title':'Czech',           'printed':Markup('&#269;esky')},
-                  'da'    : {'short':'da', 'htaccess':'da'   , 
'title':'Danish' ,         'printed':Markup('dansk')},
-                  'de'    : {'short':'de', 'htaccess':'de'   , 
'title':'German',          'printed':Markup('Deutsch')},
-                  'es'    : {'short':'es', 'htaccess':'es'   , 
'title':'Spanish',         'printed':Markup('espa&ntilde;ol')},
-                  'fi'    : {'short':'fi', 'htaccess':'fi'   , 
'title':'Finnish',         'printed':Markup('suomi')},
-                  'fr'    : {'short':'fr', 'htaccess':'fr'   , 
'title':'French',          'printed':Markup('fran&ccedil;ais')},
-                  'hu'    : {'short':'hu', 'htaccess':'hu'   , 
'title':'Hungarian',       'printed':Markup('magyar')},
-                  'it'    : {'short':'it', 'htaccess':'it'   , 
'title':'Italian',         'printed':Markup('Italiano')},
-                  'ja'    : {'short':'ja', 'htaccess':'ja'   , 
'title':'Japanese',        
'printed':Markup('&#26085;&#26412;&#35486;&nbsp;(Nihongo)')},
-                  'ko'    : {'short':'ko', 'htaccess':'ko'   , 
'title':'Korean',          
'printed':Markup('&#54620;&#44397;&#50612;&nbsp;(Hangul)')},
-                  'nl'    : {'short':'nl', 'htaccess':'nl'   , 
'title':'Dutch',           'printed':Markup('Nederlands')},
-                  'pl'    : {'short':'pl', 'htaccess':'pl'   , 
'title':'Polish',          'printed':Markup('polski')},
-                  'pt_BR' : {'short':'pt', 'htaccess':'pt-BR', 
'title':'Portuguese',      'printed':Markup('Portugu&ecirc;s')},
-                  'ru'    : {'short':'ru', 'htaccess':'ru'   , 
'title':'Russian',         
'printed':Markup('&#1056;&#1091;&#1089;&#1089;&#1082;&#1080;&#1081;&nbsp;(Russkij)')},
-                  'uk'    : {'short':'uk', 'htaccess':'uk'   , 
'title':'Ukrainian',       
'printed':Markup("&#1091;&#1082;&#1088;&#1072;&#1111;&#1085;&#1089;&#1100;&#1082;&#1072;&nbsp;(ukrajins'ka)")},
-                  'sk'    : {'short':'sk', 'htaccess':'sk'   , 
'title':'Slovenian',       'printed':Markup('slovensky')},
-                  'sr'    : {'short':'sr', 'htaccess':'sr'   , 
'title':'Serbian',         
'printed':Markup('&#1089;&#1088;&#1087;&#1089;&#1082;&#1080;(srpski)')},
-                  'sv'    : {'short':'sv', 'htaccess':'sv'   , 
'title':'Swedish',         'printed':Markup('svenska')},
-                  'zh_CN' : {'short':'zh_cn', 'htaccess':'zh-CN', 
'title':'Chinese (China)',  'printed':Markup('&#20013;&#25991;(&#31616;)')},
-                  'zh_TW' : {'short':'zh_tw', 'htaccess':'zh-TW', 
'title':'Chinese (Taiwan)', 'printed':Markup('&#20013;&#25991;(&#27491;)')},
-                }
+language_dict = {'en': {'short': 'en', 'htaccess': 'en', 'title': 'English',
+                        'printed': Markup('English')},
+                 'cs': {'short': 'cs', 'htaccess': 'cs', 'title': 'Czech',
+                        'printed': Markup('&#269;esky')},
+                 'da': {'short': 'da', 'htaccess': 'da', 'title': 'Danish',
+                        'printed': Markup('dansk')},
+                 'de': {'short': 'de', 'htaccess': 'de', 'title': 'German',
+                        'printed': Markup('Deutsch')},
+                 'es': {'short': 'es', 'htaccess': 'es', 'title': 'Spanish',
+                        'printed': Markup('espa&ntilde;ol')},
+                 'fi': {'short': 'fi', 'htaccess': 'fi', 'title': 'Finnish',
+                        'printed': Markup('suomi')},
+                 'fr': {'short': 'fr', 'htaccess': 'fr', 'title': 'French',
+                        'printed': Markup('fran&ccedil;ais')},
+                 'hu': {'short': 'hu', 'htaccess': 'hu', 'title': 'Hungarian',
+                        'printed': Markup('magyar')},
+                 'it': {'short': 'it', 'htaccess': 'it', 'title': 'Italian',
+                        'printed': Markup('Italiano')},
+                 'ja': {'short': 'ja', 'htaccess': 'ja', 'title': 'Japanese',
+                        'printed': Markup('&#26085;&#26412;&#35486;\
+                                        &nbsp;(Nihongo)')},
+                 'ko': {'short': 'ko', 'htaccess': 'ko', 'title': 'Korean',
+                        'printed': Markup('&#54620;&#44397;&#50612;\
+                                        &nbsp;(Hangul)')},
+                 'nl': {'short': 'nl', 'htaccess': 'nl', 'title': 'Dutch',
+                        'printed': Markup('Nederlands')},
+                 'pl': {'short': 'pl', 'htaccess': 'pl', 'title': 'Polish',
+                        'printed': Markup('polski')},
+                 'pt_BR': {'short': 'pt', 'htaccess': 'pt-BR',
+                           'title': 'Portuguese',
+                           'printed': Markup('Portugu&ecirc;s')},
+                 'ru': {'short': 'ru', 'htaccess': 'ru', 'title': 'Russian',
+                        'printed': Markup('&#1056;&#1091;&#1089;&#1089;&#1082;\
+                                        &#1080;&#1081;&nbsp;(Russkij)')},
+                 'uk': {'short': 'uk', 'htaccess': 'uk', 'title': 'Ukrainian',
+                        'printed': Markup("&#1091;&#1082;&#1088;&#1072;&#1111;\
+                                        &#1085;&#1089;&#1100;&#1082;&#1072;\
+                                        &nbsp;(ukrajins'ka)")},
+                 'sk': {'short': 'sk', 'htaccess': 'sk', 'title': 'Slovenian',
+                        'printed': Markup('slovensky')},
+                 'sr': {'short': 'sr', 'htaccess': 'sr', 'title': 'Serbian',
+                        'printed': Markup('&#1089;&#1088;&#1087;&#1089;&#1082;\
+                                        &#1080;(srpski)')},
+                 'sv': {'short': 'sv', 'htaccess': 'sv', 'title': 'Swedish',
+                        'printed': Markup('svenska')},
+                 'zh_CN': {'short': 'zh_cn', 'htaccess': 'zh-CN',
+                           'title': 'Chinese (China)',
+                           'printed': Markup('&#20013;&#25991;(&#31616;)')},
+                 'zh_TW': {'short': 'zh_tw', 'htaccess': 'zh-TW',
+                           'title': 'Chinese (Taiwan)',
+                           'printed': Markup('&#20013;&#25991;(&#27491;)')}, }
 # global languages
 _languages = list(language_dict.keys())
 _languages.sort()

-- 
Static and dynamic websites for Debian Pure Blends

_______________________________________________
Blends-commit mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/blends-commit

Reply via email to