Hello community,

here is the log from the commit of package python-autopep8 for openSUSE:Factory 
checked in at 2014-07-11 06:46:07
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-autopep8 (Old)
 and      /work/SRC/openSUSE:Factory/.python-autopep8.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-autopep8"

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-autopep8/python-autopep8.changes  
2014-05-13 20:48:03.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.python-autopep8.new/python-autopep8.changes     
2014-07-11 06:46:53.000000000 +0200
@@ -1,0 +2,6 @@
+Thu Jul 10 12:42:02 UTC 2014 - toddrme2...@gmail.com
+
+- Update to 1.0.3
+  + Upstream provides no changelog
+
+-------------------------------------------------------------------

Old:
----
  autopep8-1.0.2.tar.gz

New:
----
  autopep8-1.0.3.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-autopep8.spec ++++++
--- /var/tmp/diff_new_pack.D9pABL/_old  2014-07-11 06:46:53.000000000 +0200
+++ /var/tmp/diff_new_pack.D9pABL/_new  2014-07-11 06:46:53.000000000 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           python-autopep8
-Version:        1.0.2
+Version:        1.0.3
 Release:        0
 Url:            https://github.com/hhatto/autopep8
 Summary:        Automatic generated to pep8 checked code

++++++ autopep8-1.0.2.tar.gz -> autopep8-1.0.3.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/autopep8-1.0.2/PKG-INFO new/autopep8-1.0.3/PKG-INFO
--- old/autopep8-1.0.2/PKG-INFO 2014-05-08 16:31:54.000000000 +0200
+++ new/autopep8-1.0.3/PKG-INFO 2014-06-10 14:47:48.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: autopep8
-Version: 1.0.2
+Version: 1.0.3
 Summary: A tool that automatically formats Python code to conform to the PEP 8 
style guide
 Home-page: https://github.com/hhatto/autopep8
 Author: Hideo Hattori
@@ -297,6 +297,13 @@
         >>> autopep8.fix_code('x=       123\n')
         'x = 123\n'
         
+        Or with command-line options:
+        
+        >>> import autopep8
+        >>> autopep8.fix_code('x.has_key(y)\n',
+        ...                   options=autopep8.parse_args(['--aggressive', 
'']))
+        'y in x\n'
+        
         
         Testing
         =======
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/autopep8-1.0.2/README.rst 
new/autopep8-1.0.3/README.rst
--- old/autopep8-1.0.2/README.rst       2014-05-08 16:31:05.000000000 +0200
+++ new/autopep8-1.0.3/README.rst       2014-06-10 14:41:58.000000000 +0200
@@ -289,6 +289,13 @@
 >>> autopep8.fix_code('x=       123\n')
 'x = 123\n'
 
+Or with command-line options:
+
+>>> import autopep8
+>>> autopep8.fix_code('x.has_key(y)\n',
+...                   options=autopep8.parse_args(['--aggressive', '']))
+'y in x\n'
+
 
 Testing
 =======
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/autopep8-1.0.2/autopep8.egg-info/PKG-INFO 
new/autopep8-1.0.3/autopep8.egg-info/PKG-INFO
--- old/autopep8-1.0.2/autopep8.egg-info/PKG-INFO       2014-05-08 
16:31:54.000000000 +0200
+++ new/autopep8-1.0.3/autopep8.egg-info/PKG-INFO       2014-06-10 
14:47:48.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: autopep8
-Version: 1.0.2
+Version: 1.0.3
 Summary: A tool that automatically formats Python code to conform to the PEP 8 
style guide
 Home-page: https://github.com/hhatto/autopep8
 Author: Hideo Hattori
@@ -297,6 +297,13 @@
         >>> autopep8.fix_code('x=       123\n')
         'x = 123\n'
         
+        Or with command-line options:
+        
+        >>> import autopep8
+        >>> autopep8.fix_code('x.has_key(y)\n',
+        ...                   options=autopep8.parse_args(['--aggressive', 
'']))
+        'y in x\n'
+        
         
         Testing
         =======
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/autopep8-1.0.2/autopep8.egg-info/requires.txt 
new/autopep8-1.0.3/autopep8.egg-info/requires.txt
--- old/autopep8-1.0.2/autopep8.egg-info/requires.txt   2014-05-08 
16:31:54.000000000 +0200
+++ new/autopep8-1.0.3/autopep8.egg-info/requires.txt   2014-06-10 
14:47:48.000000000 +0200
@@ -1 +1 @@
-pep8 >= 1.5.6
\ No newline at end of file
+pep8 >= 1.5.7
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/autopep8-1.0.2/autopep8.py 
new/autopep8-1.0.3/autopep8.py
--- old/autopep8-1.0.2/autopep8.py      2014-05-08 16:31:21.000000000 +0200
+++ new/autopep8-1.0.3/autopep8.py      2014-06-10 14:45:35.000000000 +0200
@@ -67,7 +67,7 @@
     unicode = str
 
 
-__version__ = '1.0.2'
+__version__ = '1.0.3'
 
 
 CR = '\r'
@@ -410,6 +410,8 @@
 
         # Many fixers are the same even though pep8 categorizes them
         # differently.
+        self.fix_e115 = self.fix_e112
+        self.fix_e116 = self.fix_e113
         self.fix_e121 = self._fix_reindent
         self.fix_e122 = self._fix_reindent
         self.fix_e123 = self._fix_reindent
@@ -2370,6 +2372,8 @@
         return line + 'def _(): pass'
     elif line.startswith('class '):
         return line + ' pass'
+    elif line.startswith('if '):
+        return line + ' pass'
     else:
         return line
 
@@ -2817,7 +2821,7 @@
         options = parse_args([''])
 
     if not isinstance(source, unicode):
-        source = source.decode(locale.getpreferredencoding(False))
+        source = source.decode(locale.getpreferredencoding())
 
     sio = io.StringIO(source)
     return fix_lines(sio.readlines(), options=options)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/autopep8-1.0.2/setup.py new/autopep8-1.0.3/setup.py
--- old/autopep8-1.0.2/setup.py 2014-05-08 16:31:05.000000000 +0200
+++ new/autopep8-1.0.3/setup.py 2014-06-10 14:41:58.000000000 +0200
@@ -11,7 +11,7 @@
 
 
 INSTALL_REQUIRES = (
-    ['pep8 >= 1.5.6'] +
+    ['pep8 >= 1.5.7'] +
     (['argparse'] if sys.version_info < (2, 7) else [])
 )
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/autopep8-1.0.2/test/test_autopep8.py 
new/autopep8-1.0.3/test/test_autopep8.py
--- old/autopep8-1.0.2/test/test_autopep8.py    2014-05-08 16:31:05.000000000 
+0200
+++ new/autopep8-1.0.3/test/test_autopep8.py    2014-06-10 14:41:58.000000000 
+0200
@@ -3245,6 +3245,22 @@
         with autopep8_context(line, options=['-aa']) as result:
             self.assertEqual(fixed, result)
 
+    def test_e501_if_line_over_limit(self):
+        line = """\
+if not xxxxxxxxxxxx(aaaaaaaaaaaaaaaaaa, bbbbbbbbbbbbbbbb, cccccccccccccc, 
dddddddddddddddddddddd):
+    return 1
+"""
+        fixed = """\
+if not xxxxxxxxxxxx(
+        aaaaaaaaaaaaaaaaaa,
+        bbbbbbbbbbbbbbbb,
+        cccccccccccccc,
+        dddddddddddddddddddddd):
+    return 1
+"""
+        with autopep8_context(line, options=['-aa']) as result:
+            self.assertEqual(fixed, result)
+
     def test_e502(self):
         line = "print('abc'\\\n      'def')\n"
         fixed = "print('abc'\n      'def')\n"
@@ -4777,8 +4793,18 @@
 
         return False
 """
+        fixed = r"""
+class Useless(object):
+
+    def _table_field_is_plain_widget(self, widget):
+        if widget.__class__ == Widget or(
+                widget.__class__ == WidgetMeta and Widget in widget.__bases__):
+            return True
+
+        return False
+"""
         with autopep8_context(line, options=['--experimental']) as result:
-            self.assertEqual(line, result)
+            self.assertEqual(fixed, result)
 
     def test_e501_with_experimental(self):
         # FIXME: This has really bad output.
@@ -5498,6 +5524,20 @@
         with autopep8_context(line, options=['--experimental']) as result:
             self.assertEqual(fixed, result)
 
+    def test_e501_experimental_if_line_over_limit(self):
+        line = """\
+if not xxxxxxxxxxxx(aaaaaaaaaaaaaaaaaa, bbbbbbbbbbbbbbbb, cccccccccccccc, 
dddddddddddddddddddddd):
+    return 1
+"""
+        fixed = """\
+if not xxxxxxxxxxxx(
+        aaaaaaaaaaaaaaaaaa, bbbbbbbbbbbbbbbb, cccccccccccccc,
+        dddddddddddddddddddddd):
+    return 1
+"""
+        with autopep8_context(line, options=['--experimental']) as result:
+            self.assertEqual(fixed, result)
+
 
 @contextlib.contextmanager
 def autopep8_context(line, options=None):

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org

Reply via email to