Corrected some style issues.

Mon, 30 Dec 2013 10:45:15 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 30 Dec 2013 10:45:15 +0100
changeset 2
f33d9d82ae69
parent 1
2fa6997ff09c
child 3
f01e48994421

Corrected some style issues.

PluginWizardDataUriEncoder.e4p file | annotate | diff | comparison | revisions
WizardDataUriEncoder/DataUriEncoderWizardDialog.py file | annotate | diff | comparison | revisions
--- a/PluginWizardDataUriEncoder.e4p	Sun Dec 29 19:41:52 2013 +0100
+++ b/PluginWizardDataUriEncoder.e4p	Mon Dec 30 10:45:15 2013 +0100
@@ -148,4 +148,77 @@
     <FiletypeAssociation pattern="*.ui.h" type="FORMS"/>
     <FiletypeAssociation pattern="Ui_*.py" type="__IGNORE__"/>
   </FiletypeAssociations>
+  <Checkers>
+    <CheckersParams>
+      <dict>
+        <key>
+          <string>Pep8Checker</string>
+        </key>
+        <value>
+          <dict>
+            <key>
+              <string>DocstringType</string>
+            </key>
+            <value>
+              <string>eric</string>
+            </value>
+            <key>
+              <string>ExcludeFiles</string>
+            </key>
+            <value>
+              <string>*/Ui_*.py</string>
+            </value>
+            <key>
+              <string>ExcludeMessages</string>
+            </key>
+            <value>
+              <string>W293, N802, N803, N807, N808, N821</string>
+            </value>
+            <key>
+              <string>FixCodes</string>
+            </key>
+            <value>
+              <string></string>
+            </value>
+            <key>
+              <string>FixIssues</string>
+            </key>
+            <value>
+              <bool>False</bool>
+            </value>
+            <key>
+              <string>HangClosing</string>
+            </key>
+            <value>
+              <bool>False</bool>
+            </value>
+            <key>
+              <string>IncludeMessages</string>
+            </key>
+            <value>
+              <string></string>
+            </value>
+            <key>
+              <string>MaxLineLength</string>
+            </key>
+            <value>
+              <int>79</int>
+            </value>
+            <key>
+              <string>NoFixCodes</string>
+            </key>
+            <value>
+              <string>E501</string>
+            </value>
+            <key>
+              <string>RepeatMessages</string>
+            </key>
+            <value>
+              <bool>True</bool>
+            </value>
+          </dict>
+        </value>
+      </dict>
+    </CheckersParams>
+  </Checkers>
 </Project>
--- a/WizardDataUriEncoder/DataUriEncoderWizardDialog.py	Sun Dec 29 19:41:52 2013 +0100
+++ b/WizardDataUriEncoder/DataUriEncoderWizardDialog.py	Mon Dec 30 10:45:15 2013 +0100
@@ -158,7 +158,7 @@
                 'data:' if self.dataCheckBox.isChecked() else '',
                 mimetype if self.dataCheckBox.isChecked() else '',
                 ';charset=utf-8;base64,' if self.dataCheckBox.isChecked()
-                    else '',
+                else '',
                 base64.b64encode(open(filepath, "rb").read()).decode()
             )
         except (IOError, OSError) as err:
@@ -226,7 +226,7 @@
         @return entered mime type (string)
         """
         mimetypesList = [""] + list(sorted(
-            set(mimetypes.types_map.values()).union( 
+            set(mimetypes.types_map.values()).union(
                 set(mimetypes.common_types.values()))))
         try:
             index = mimetypesList.index("application/octet-stream")

eric ide

mercurial