Hello community,

here is the log from the commit of package python3-autopep8 for 
openSUSE:Factory checked in at 2016-02-29 09:14:25
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python3-autopep8 (Old)
 and      /work/SRC/openSUSE:Factory/.python3-autopep8.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python3-autopep8"

Changes:
--------
--- /work/SRC/openSUSE:Factory/python3-autopep8/python3-autopep8.changes        
2015-10-20 00:04:26.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.python3-autopep8.new/python3-autopep8.changes   
2016-02-29 09:16:04.000000000 +0100
@@ -1,0 +2,22 @@
+Sat Feb 27 16:21:20 UTC 2016 - [email protected]
+
+- specfile:
+  * update copyright year
+
+- update to version 1.2.2:
+  * Point to new URL
+  * Simplify
+  * Fix broken link
+  * Put constant on right
+  * Disable some checks for now
+  * Use consistent type
+  * Use enumerate rather than range and len
+  * Put constant on right side
+  * Simplify
+  * Handle "-OO" mode
+  * Support "noqa" for E265
+  * Suppress option that is not recommended
+  * Avoid infinite loop upon an invalid code input
+  * Suppress false positive
+
+-------------------------------------------------------------------

Old:
----
  autopep8-1.2.1.tar.gz

New:
----
  autopep8-1.2.2.tar.gz

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

Other differences:
------------------
++++++ python3-autopep8.spec ++++++
--- /var/tmp/diff_new_pack.pL72ax/_old  2016-02-29 09:16:05.000000000 +0100
+++ /var/tmp/diff_new_pack.pL72ax/_new  2016-02-29 09:16:05.000000000 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python3-autopep8
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,7 @@
 
 
 Name:           python3-autopep8
-Version:        1.2.1
+Version:        1.2.2
 Release:        0
 Url:            https://github.com/hhatto/autopep8
 Summary:        Automatic generated to pep8 checked code

++++++ autopep8-1.2.1.tar.gz -> autopep8-1.2.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/autopep8-1.2.1/PKG-INFO new/autopep8-1.2.2/PKG-INFO
--- old/autopep8-1.2.1/PKG-INFO 2015-09-20 03:30:39.000000000 +0200
+++ new/autopep8-1.2.2/PKG-INFO 2016-02-25 07:27:59.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: autopep8
-Version: 1.2.1
+Version: 1.2.2
 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
@@ -19,7 +19,7 @@
         be formatted. autopep8 is capable of fixing most of the formatting 
issues_ that
         can be reported by pep8.
         
-        .. _PEP 8: http://www.python.org/dev/peps/pep-0008/
+        .. _PEP 8: https://www.python.org/dev/peps/pep-0008/
         .. _issues: 
https://pep8.readthedocs.org/en/latest/intro.html#error-codes
         
         .. contents::
@@ -34,7 +34,7 @@
         
         Consider using the ``--user`` option_.
         
-        .. _option: 
https://pip.readthedocs.org/en/latest/user_guide.html#user-installs
+        .. _option: https://pip.pypa.io/en/latest/user_guide/#user-installs
         
         
         Requirements
@@ -42,7 +42,7 @@
         
         autopep8 requires pep8_.
         
-        .. _pep8: https://github.com/PyCQA/pep8
+        .. _pep8: https://github.com/PyCQA/pycodestyle
         
         
         Usage
@@ -135,7 +135,7 @@
                             [--ignore-local-config] [-r] [-j n] [-p n] [-a]
                             [--experimental] [--exclude globs] [--list-fixes]
                             [--ignore errors] [--select errors] 
[--max-line-length n]
-                            [--line-range line line] [--indent-size n]
+                            [--line-range line line]
                             [files [files ...]]
         
             Automatically formats Python code to conform to the PEP 8 style 
guide.
@@ -178,7 +178,6 @@
                                     only fix errors found within this 
inclusive range of
                                     line numbers (e.g. 1 99); line numbers are 
indexed at
                                     1
-              --indent-size n       number of spaces per indent level (default 
4)
         
         
         Features
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/autopep8-1.2.1/README.rst 
new/autopep8-1.2.2/README.rst
--- old/autopep8-1.2.1/README.rst       2015-09-20 03:27:50.000000000 +0200
+++ new/autopep8-1.2.2/README.rst       2016-02-25 07:21:42.000000000 +0100
@@ -11,7 +11,7 @@
 be formatted. autopep8 is capable of fixing most of the formatting issues_ that
 can be reported by pep8.
 
-.. _PEP 8: http://www.python.org/dev/peps/pep-0008/
+.. _PEP 8: https://www.python.org/dev/peps/pep-0008/
 .. _issues: https://pep8.readthedocs.org/en/latest/intro.html#error-codes
 
 .. contents::
@@ -26,7 +26,7 @@
 
 Consider using the ``--user`` option_.
 
-.. _option: https://pip.readthedocs.org/en/latest/user_guide.html#user-installs
+.. _option: https://pip.pypa.io/en/latest/user_guide/#user-installs
 
 
 Requirements
@@ -34,7 +34,7 @@
 
 autopep8 requires pep8_.
 
-.. _pep8: https://github.com/PyCQA/pep8
+.. _pep8: https://github.com/PyCQA/pycodestyle
 
 
 Usage
@@ -127,7 +127,7 @@
                     [--ignore-local-config] [-r] [-j n] [-p n] [-a]
                     [--experimental] [--exclude globs] [--list-fixes]
                     [--ignore errors] [--select errors] [--max-line-length n]
-                    [--line-range line line] [--indent-size n]
+                    [--line-range line line]
                     [files [files ...]]
 
     Automatically formats Python code to conform to the PEP 8 style guide.
@@ -170,7 +170,6 @@
                             only fix errors found within this inclusive range 
of
                             line numbers (e.g. 1 99); line numbers are indexed 
at
                             1
-      --indent-size n       number of spaces per indent level (default 4)
 
 
 Features
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/autopep8-1.2.1/autopep8.egg-info/PKG-INFO 
new/autopep8-1.2.2/autopep8.egg-info/PKG-INFO
--- old/autopep8-1.2.1/autopep8.egg-info/PKG-INFO       2015-09-20 
03:30:39.000000000 +0200
+++ new/autopep8-1.2.2/autopep8.egg-info/PKG-INFO       2016-02-25 
07:27:59.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: autopep8
-Version: 1.2.1
+Version: 1.2.2
 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
@@ -19,7 +19,7 @@
         be formatted. autopep8 is capable of fixing most of the formatting 
issues_ that
         can be reported by pep8.
         
-        .. _PEP 8: http://www.python.org/dev/peps/pep-0008/
+        .. _PEP 8: https://www.python.org/dev/peps/pep-0008/
         .. _issues: 
https://pep8.readthedocs.org/en/latest/intro.html#error-codes
         
         .. contents::
@@ -34,7 +34,7 @@
         
         Consider using the ``--user`` option_.
         
-        .. _option: 
https://pip.readthedocs.org/en/latest/user_guide.html#user-installs
+        .. _option: https://pip.pypa.io/en/latest/user_guide/#user-installs
         
         
         Requirements
@@ -42,7 +42,7 @@
         
         autopep8 requires pep8_.
         
-        .. _pep8: https://github.com/PyCQA/pep8
+        .. _pep8: https://github.com/PyCQA/pycodestyle
         
         
         Usage
@@ -135,7 +135,7 @@
                             [--ignore-local-config] [-r] [-j n] [-p n] [-a]
                             [--experimental] [--exclude globs] [--list-fixes]
                             [--ignore errors] [--select errors] 
[--max-line-length n]
-                            [--line-range line line] [--indent-size n]
+                            [--line-range line line]
                             [files [files ...]]
         
             Automatically formats Python code to conform to the PEP 8 style 
guide.
@@ -178,7 +178,6 @@
                                     only fix errors found within this 
inclusive range of
                                     line numbers (e.g. 1 99); line numbers are 
indexed at
                                     1
-              --indent-size n       number of spaces per indent level (default 
4)
         
         
         Features
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/autopep8-1.2.1/autopep8.egg-info/SOURCES.txt 
new/autopep8-1.2.2/autopep8.egg-info/SOURCES.txt
--- old/autopep8-1.2.1/autopep8.egg-info/SOURCES.txt    2015-09-20 
03:30:39.000000000 +0200
+++ new/autopep8-1.2.2/autopep8.egg-info/SOURCES.txt    2016-02-25 
07:27:59.000000000 +0100
@@ -9,7 +9,6 @@
 autopep8.egg-info/dependency_links.txt
 autopep8.egg-info/entry_points.txt
 autopep8.egg-info/not-zip-safe
-autopep8.egg-info/pbr.json
 autopep8.egg-info/requires.txt
 autopep8.egg-info/top_level.txt
 test/__init__.py
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/autopep8-1.2.1/autopep8.egg-info/pbr.json 
new/autopep8-1.2.2/autopep8.egg-info/pbr.json
--- old/autopep8-1.2.1/autopep8.egg-info/pbr.json       2015-09-20 
03:30:39.000000000 +0200
+++ new/autopep8-1.2.2/autopep8.egg-info/pbr.json       1970-01-01 
01:00:00.000000000 +0100
@@ -1 +0,0 @@
-{"is_release": false, "git_version": "064354f"}
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/autopep8-1.2.1/autopep8.py 
new/autopep8-1.2.2/autopep8.py
--- old/autopep8-1.2.1/autopep8.py      2015-09-20 03:29:39.000000000 +0200
+++ new/autopep8-1.2.2/autopep8.py      2016-02-25 07:26:47.000000000 +0100
@@ -66,7 +66,7 @@
     unicode = str
 
 
-__version__ = '1.2.1'
+__version__ = '1.2.2'
 
 
 CR = '\r'
@@ -652,7 +652,7 @@
         line_index = result['line'] - 1
         target = self.source[line_index]
         offset = result['column']
-        fixed = target[:offset] + ' ' + target[offset:]
+        fixed = target[:offset].rstrip() + ' ' + target[offset:].lstrip()
         self.source[line_index] = fixed
 
     def fix_e251(self, result):
@@ -891,9 +891,9 @@
         second = (_get_indentation(logical_lines[0]) +
                   target[offset:].lstrip(';').lstrip())
 
-        # find inline commnet
+        # Find inline comment.
         inline_comment = None
-        if '# ' == target[offset:].lstrip(';').lstrip()[:2]:
+        if target[offset:].lstrip(';').lstrip()[:2] == '# ':
             inline_comment = target[offset:].lstrip(';')
 
         if inline_comment:
@@ -1166,7 +1166,7 @@
     if len(split_a) != len(split_b):
         return False
 
-    for index in range(len(split_a)):
+    for (index, _) in enumerate(split_a):
         if ''.join(split_a[index].split()) != ''.join(split_b[index].split()):
             return False
 
@@ -1197,7 +1197,8 @@
     for (line_number, line) in enumerate(sio.readlines(), start=1):
         if (
             line.lstrip().startswith('#') and
-            line_number not in ignored_line_numbers
+            line_number not in ignored_line_numbers and
+            not pep8.noqa(line)
         ):
             indentation = _get_indentation(line)
             line = line.lstrip()
@@ -2996,6 +2997,7 @@
 
 
 def _get_parameters(function):
+    # pylint: disable=deprecated-method
     if sys.version_info >= (3, 3):
         # We need to match "getargspec()", which includes "self" as the first
         # value for methods.
@@ -3117,9 +3119,7 @@
                              'range of line numbers (e.g. 1 99); '
                              'line numbers are indexed at 1')
     parser.add_argument('--indent-size', default=DEFAULT_INDENT_SIZE,
-                        type=int, metavar='n',
-                        help='number of spaces per indent level '
-                             '(default %(default)s)')
+                        type=int, help=argparse.SUPPRESS)
     parser.add_argument('files', nargs='*',
                         help="files to format or '-' for standard in")
 
@@ -3176,14 +3176,14 @@
     elif not args.select:
         if args.aggressive:
             # Enable everything by default if aggressive.
-            args.select = ['E', 'W']
+            args.select = set(['E', 'W'])
         else:
             args.ignore = _split_comma_separated(DEFAULT_IGNORE)
 
     if args.exclude:
         args.exclude = _split_comma_separated(args.exclude)
     else:
-        args.exclude = []
+        args.exclude = set([])
 
     if args.jobs < 1:
         # Do not import multiprocessing globally in case it is not supported
@@ -3280,7 +3280,7 @@
 
 def docstring_summary(docstring):
     """Return summary of docstring."""
-    return docstring.split('\n')[0]
+    return docstring.split('\n')[0] if docstring else ''
 
 
 def line_shortening_rank(candidate, indent_word, max_line_length,


Reply via email to