]> git.ipfire.org Git - thirdparty/babel.git/log
thirdparty/babel.git
7 years agoRephrase copyright headers to link to the LICENSE file instead of COPYING 559/head
Aarni Koskela [Fri, 2 Feb 2018 16:52:10 +0000 (18:52 +0200)] 
Rephrase copyright headers to link to the LICENSE file instead of COPYING

Fixes #398

7 years agoUpdate copyright header years, and include the Babel team
Aarni Koskela [Fri, 2 Feb 2018 16:51:30 +0000 (18:51 +0200)] 
Update copyright header years, and include the Babel team

7 years agoAdd script to generate the AUTHORS file and regenerate it
Aarni Koskela [Fri, 2 Feb 2018 16:45:19 +0000 (18:45 +0200)] 
Add script to generate the AUTHORS file and regenerate it

7 years agoMerge pull request #558 from python-babel/currency-alt2
Aarni Koskela [Fri, 2 Feb 2018 16:23:36 +0000 (18:23 +0200)] 
Merge pull request #558 from python-babel/currency-alt2

Ignore currency symbol alt forms

7 years agoimport_cldr: avoid importing alt=narrow currency symbols 558/head
Aarni Koskela [Fri, 2 Feb 2018 15:52:47 +0000 (17:52 +0200)] 
import_cldr: avoid importing alt=narrow currency symbols

Fixes #397

Closes #483, #556

7 years agoimport_cldr: choice patterns in currencies are deprecated, so remove todo
Aarni Koskela [Fri, 2 Feb 2018 15:50:04 +0000 (17:50 +0200)] 
import_cldr: choice patterns in currencies are deprecated, so remove todo

7 years agoMerge pull request #552 from python-babel/cldr-32
Aarni Koskela [Fri, 2 Feb 2018 14:16:25 +0000 (16:16 +0200)] 
Merge pull request #552 from python-babel/cldr-32

Use CLDR 32

7 years agoMerge pull request #554 from xmo-odoo/patch-1
Aarni Koskela [Tue, 30 Jan 2018 07:48:33 +0000 (09:48 +0200)] 
Merge pull request #554 from xmo-odoo/patch-1

Add explicit signatures to some date autofunctions

7 years agoAdd explicit signatures to some date autofunctions 554/head
xmo-odoo [Fri, 26 Jan 2018 10:14:57 +0000 (11:14 +0100)] 
Add explicit signatures to some date autofunctions

Because default_locale is eager, it generates misleading documentation when built (including on the site) as the doc will show the LC_TIME for the machine which built the doc.

An explicit autofunction signature fixes that and provides a more correct view of the signature.

An alternative fix would be for the LC_TIME value in the module to be a custom object with a repr of LC_TIME or something along those lines.

Fixes #542

7 years agoTest that CLDR 32 properly formats Russian start-of-year dates. 552/head
Aarni Koskela [Thu, 25 Jan 2018 16:17:06 +0000 (18:17 +0200)] 
Test that CLDR 32 properly formats Russian start-of-year dates.

Fixes #485

7 years agoLists: add support for various list styles other than the default
Aarni Koskela [Fri, 19 Jan 2018 11:39:07 +0000 (13:39 +0200)] 
Lists: add support for various list styles other than the default

This was inspired by the CLDR 32 release notes:

> New “disjunctive” list style (eg “a, b, or c”)

7 years agoCLDR: Use CLDR 32.0.1
Aarni Koskela [Fri, 19 Jan 2018 11:27:44 +0000 (13:27 +0200)] 
CLDR: Use CLDR 32.0.1

7 years agoUpdate py.test
Aarni Koskela [Fri, 19 Jan 2018 11:31:17 +0000 (13:31 +0200)] 
Update py.test

* Add py.test's .cache to ignore
* setup.cfg: Use [tool:pytest] instead of deprecated [pytest]

7 years agoMerge pull request #456 from python-babel/cldr-30
Aarni Koskela [Wed, 17 Jan 2018 10:48:10 +0000 (12:48 +0200)] 
Merge pull request #456 from python-babel/cldr-30

Upgrade to CLDR 31

7 years agocldr: use CLDR 31.0.1 (and fix test changes); see below! 456/head
Aarni Koskela [Fri, 18 Aug 2017 10:14:46 +0000 (13:14 +0300)] 
cldr: use CLDR 31.0.1 (and fix test changes); see below!

CLDR 31.0 separated the GMT and UTC time zones, so formatting of that
time zone has changed.  Most notably, "UTC" replaces "+0000" when formatting
the timezone.  This could break code that expects +0000.

A subset (the parts supported by Babel) of the migration guide from
http://cldr.unicode.org/index/downloads/cldr-31:

* The locales in the language-territory population tables have been changed to
  be the canonical format, dropping the script where it is the default.
  So "ku_Latn" changes to "ku".
* Plural rules: The Portuguese plural rules have changed so that all
  (and only) integers and decimal fractions < 2 are singular.
* Timezones: The GMT timezone has been split from the UTC timezone.
* Timezones: New timezone bcp47 codes have been added.
* Languages "hr" and "sr" are no longer a short distance apart, for political reasons.
* The primary names for CZ changed from "Czech Republic" to
  "Czechia", with the longer name now the alternate.

7 years agocldr: Parse compact decimal formats that appear in CLDR 30
Aarni Koskela [Mon, 21 Nov 2016 14:39:53 +0000 (16:39 +0200)] 
cldr: Parse compact decimal formats that appear in CLDR 30

7 years agocldr: use CLDR 30.0.2 (and fix test changes)
Aarni Koskela [Mon, 21 Nov 2016 14:38:54 +0000 (16:38 +0200)] 
cldr: use CLDR 30.0.2 (and fix test changes)

7 years agonumbers: allow number patterns with no dynamic parts whatsoever
Aarni Koskela [Mon, 21 Nov 2016 14:38:14 +0000 (16:38 +0200)] 
numbers: allow number patterns with no dynamic parts whatsoever

7 years agoMerge pull request #532 from Bedrock02/invalid-po-issue-531
Aarni Koskela [Tue, 16 Jan 2018 15:36:32 +0000 (17:36 +0200)] 
Merge pull request #532 from Bedrock02/invalid-po-issue-531

pofile.py: Added new exception called PoFileError and thrown if flagged

7 years agopofile.py: Added new exception called PoFileError and thrown if flagged 532/head
StevenJ [Mon, 25 Sep 2017 23:03:14 +0000 (16:03 -0700)] 
pofile.py: Added new exception called PoFileError and thrown if flagged

This new exception is thrown when the po parser finds an invalid pofile.
This helps handle invalid po files that are parsed. Invalid po files may cause
other possible errors such as a UnicodeEncodeError.

Closes https://github.com/python-babel/babel/issues/531

7 years agoMerge pull request #546 from hugovk/rm-eol
Aarni Koskela [Tue, 16 Jan 2018 13:23:11 +0000 (15:23 +0200)] 
Merge pull request #546 from hugovk/rm-eol

Drop support for EOL Python 2.6 and 3.3

7 years agoMerge branch 'maint-25' to bring CHANGES and version up to date from 2.5.3
Aarni Koskela [Mon, 15 Jan 2018 17:23:36 +0000 (19:23 +0200)] 
Merge branch 'maint-25' to bring CHANGES and version up to date from 2.5.3

`git merge -X theirs maint-25`

7 years agoBecome 2.5.3 551/head v2.5.3
Aarni Koskela [Mon, 15 Jan 2018 16:55:40 +0000 (18:55 +0200)] 
Become 2.5.3

7 years agoBecome 2.5.2
Aarni Koskela [Mon, 15 Jan 2018 10:43:52 +0000 (12:43 +0200)] 
Become 2.5.2

7 years agoRevert "Merge pull request #505 from wodo/pi_support"
Jakob Schnitzer [Thu, 28 Sep 2017 17:18:32 +0000 (19:18 +0200)] 
Revert "Merge pull request #505 from wodo/pi_support"

This reverts commit 653e6d4f654f0f3cbce57054654e09c519b9e412, reversing
changes made to 5f3b00854bbc6fa6a03e04ab572a609eebcc1f72.

7 years agoRevert "Also check for `sys._MEIPASS` before assuming PyInstallerness (#526)"
Jakob Schnitzer [Thu, 28 Sep 2017 17:17:42 +0000 (19:17 +0200)] 
Revert "Also check for `sys._MEIPASS` before assuming PyInstallerness (#526)"

This reverts commit 0b34807ab3d9681bb653ac535e0fbc6f0ac3ffbb.

7 years agoMerge pull request #528 from scop/escseq
Aarni Koskela [Mon, 15 Jan 2018 12:18:03 +0000 (14:18 +0200)] 
Merge pull request #528 from scop/escseq

Invalid string escape sequence related fixes

7 years agoBecome 2.5.2 v2.5.2
Aarni Koskela [Mon, 15 Jan 2018 10:43:52 +0000 (12:43 +0200)] 
Become 2.5.2

7 years agoMerge pull request #533 from yagebu/fix-pyinstaller
Aarni Koskela [Mon, 15 Jan 2018 10:40:56 +0000 (12:40 +0200)] 
Merge pull request #533 from yagebu/fix-pyinstaller

* Revert "Also check for `sys._MEIPASS` before assuming PyInstallerness (#526)" (0b34807ab3d9681bb653ac535e0fbc6f0ac3ffbb)
* Revert "Merge pull request #505 from wodo/pi_support" (commit 653e6d4f654f0f3cbce57054654e09c519b9e412, reversing
changes made to 5f3b00854bbc6fa6a03e04ab572a609eebcc1f72)

7 years agoDrop EOL Python 3.3 546/head
Hugo [Thu, 28 Dec 2017 09:39:20 +0000 (11:39 +0200)] 
Drop EOL Python 3.3

7 years agoReplace comparison with None with equality operator
Hugo [Thu, 28 Dec 2017 09:13:50 +0000 (11:13 +0200)] 
Replace comparison with None with equality operator

7 years agoRemove unused imports
Hugo [Thu, 28 Dec 2017 09:12:01 +0000 (11:12 +0200)] 
Remove unused imports

7 years agoRemove redundant parentheses
Hugo [Thu, 28 Dec 2017 09:06:59 +0000 (11:06 +0200)] 
Remove redundant parentheses

7 years agoReplace function call with set literal
Hugo [Wed, 27 Dec 2017 22:25:54 +0000 (00:25 +0200)] 
Replace function call with set literal

7 years agoDrop EOL Python 2.6 and 3.3
Hugo [Wed, 27 Dec 2017 22:17:29 +0000 (00:17 +0200)] 
Drop EOL Python 2.6 and 3.3

7 years agoSimplify Linux distro specific explicit timezone setting search 528/head
Ville Skyttä [Fri, 15 Sep 2017 21:08:07 +0000 (00:08 +0300)] 
Simplify Linux distro specific explicit timezone setting search

7 years agoPython 3.6 invalid escape sequence deprecation fixes
Ville Skyttä [Fri, 15 Sep 2017 21:07:04 +0000 (00:07 +0300)] 
Python 3.6 invalid escape sequence deprecation fixes

https://docs.python.org/3/whatsnew/3.6.html#deprecated-python-behavior

7 years agoAllow bypass of decimal quantization.
Kevin Deldycke [Fri, 7 Apr 2017 14:09:14 +0000 (16:09 +0200)] 
Allow bypass of decimal quantization.

7 years agoTest and document all supported Python versions
Jon Dufresne [Sat, 21 Oct 2017 16:49:07 +0000 (09:49 -0700)] 
Test and document all supported Python versions

Add Python 3.6 to Travis CI and tox.

Add PyPy to tox.

Add trove classifiers for all supported versions. Helps package users
know if the library is compatible.

7 years agoInclude license file in the generated wheel package
Jon Dufresne [Sat, 21 Oct 2017 16:47:07 +0000 (09:47 -0700)] 
Include license file in the generated wheel package

The wheel package format supports including the license file. This is
done using the [metadata] section in the setup.cfg file. For additional
information on this feature, see:

https://wheel.readthedocs.io/en/stable/index.html#including-the-license-in-the-generated-wheel-file

7 years agoRefactor decimal handling code.
Kevin Deldycke [Fri, 7 Apr 2017 14:09:14 +0000 (16:09 +0200)] 
Refactor decimal handling code.

7 years agoMerge pull request #537 from kdeldycke/tox-deps
Aarni Koskela [Mon, 16 Oct 2017 09:48:32 +0000 (12:48 +0300)] 
Merge pull request #537 from kdeldycke/tox-deps

Keep tox dependencies in sync

7 years agoKeep tox dependencies in sync with travis config. 537/head
Kevin Deldycke [Mon, 16 Oct 2017 08:45:15 +0000 (10:45 +0200)] 
Keep tox dependencies in sync with travis config.

Refs 1da04fd0af20162fe4e2b503a5fcae8f25267010 and #520.

7 years agoRevert "Merge pull request #505 from wodo/pi_support" 533/head
Jakob Schnitzer [Thu, 28 Sep 2017 17:18:32 +0000 (19:18 +0200)] 
Revert "Merge pull request #505 from wodo/pi_support"

This reverts commit 653e6d4f654f0f3cbce57054654e09c519b9e412, reversing
changes made to 5f3b00854bbc6fa6a03e04ab572a609eebcc1f72.

7 years agoRevert "Also check for `sys._MEIPASS` before assuming PyInstallerness (#526)"
Jakob Schnitzer [Thu, 28 Sep 2017 17:17:42 +0000 (19:17 +0200)] 
Revert "Also check for `sys._MEIPASS` before assuming PyInstallerness (#526)"

This reverts commit 0b34807ab3d9681bb653ac535e0fbc6f0ac3ffbb.

7 years agoBecome 2.5.1 (#527) v2.5.1
Aarni Koskela [Thu, 14 Sep 2017 10:04:32 +0000 (13:04 +0300)] 
Become 2.5.1 (#527)

7 years agoAlso check for `sys._MEIPASS` before assuming PyInstallerness (#526)
Aarni Koskela [Thu, 14 Sep 2017 09:47:05 +0000 (12:47 +0300)] 
Also check for `sys._MEIPASS` before assuming PyInstallerness (#526)

Fixes #525

7 years agoAllow normalize_locale and exists to handle various unexpected input (#523)
Jungmo Ku [Tue, 12 Sep 2017 13:25:24 +0000 (08:25 -0500)] 
Allow normalize_locale and exists to handle various unexpected input (#523)

Resolves #521

7 years agoFixed docstring of validate_currency function (#522)
Simeon Visser [Mon, 28 Aug 2017 19:35:32 +0000 (20:35 +0100)] 
Fixed docstring of validate_currency function (#522)

7 years agoParse multi-line __future__ imports better (#519)
Aarni Koskela [Mon, 21 Aug 2017 13:25:51 +0000 (16:25 +0300)] 
Parse multi-line __future__ imports better (#519)

Augments #426
Augments #427
Augments #510

7 years agoUse a fixed datetime to avoid test failures (#520)
Narendra Vardi [Fri, 18 Aug 2017 14:48:26 +0000 (20:18 +0530)] 
Use a fixed datetime to avoid test failures (#520)

freezegun library added to travis build and appveyor

Fixes #507

7 years agoBecome 2.5.0 (#518) v2.5.0
Aarni Koskela [Fri, 18 Aug 2017 08:58:20 +0000 (11:58 +0300)] 
Become 2.5.0 (#518)

7 years agoDate format: Use * parametrized format patterns instead of %%0%... (#517)
Aarni Koskela [Fri, 18 Aug 2017 08:34:06 +0000 (11:34 +0300)] 
Date format: Use * parametrized format patterns instead of %%0%... (#517)

This is about 60% faster than the old version in a micro-benchmark.

7 years agoMerge pull request #505 from wodo/pi_support
Aarni Koskela [Fri, 18 Aug 2017 08:12:55 +0000 (11:12 +0300)] 
Merge pull request #505 from wodo/pi_support

Introduce PyInstaller support. Fixes #500

7 years agoUse Py.test's monkeypatch for PyInstaller tests 505/head
Aarni Koskela [Fri, 18 Aug 2017 08:05:45 +0000 (11:05 +0300)] 
Use Py.test's monkeypatch for PyInstaller tests

8 years agoAdd __str__ to DateTimePattern (#515)
Stefane Fermigier [Thu, 3 Aug 2017 18:22:46 +0000 (20:22 +0200)] 
Add __str__ to DateTimePattern (#515)

Fixes #514

8 years agoFix "Good Commits" link in CONTRIBUTING.md (#511)
Narayan Acharya [Thu, 3 Aug 2017 08:22:57 +0000 (13:52 +0530)] 
Fix "Good Commits" link in CONTRIBUTING.md (#511)

Closes https://github.com/python-babel/babel/issues/345

8 years agoDoc: always redirect to the python gettext module
François Magimel [Sun, 16 Jul 2017 16:20:31 +0000 (18:20 +0200)] 
Doc: always redirect to the python gettext module

The link to the python gettext module was dead. So, redirect the user
to the official doc.

8 years agoIntroduce PyInstaller support. Fixes #500
Wolfgang Doll [Fri, 23 Jun 2017 10:03:23 +0000 (12:03 +0200)] 
Introduce PyInstaller support. Fixes #500

Add a get_base_dir function that works in the context of
PyInstaller, where the __file__ system variable is
not available.

8 years agoMerge pull request #498 from rowillia/fix_bytes_warning_in_python3
Aarni Koskela [Sun, 4 Jun 2017 10:06:44 +0000 (13:06 +0300)] 
Merge pull request #498 from rowillia/fix_bytes_warning_in_python3

Fix an invalid string to bytes comparison in Python 3

8 years agoFix an invalid string to bytes comparison in Python 3 498/head
Roy Williams [Sat, 27 May 2017 00:04:27 +0000 (17:04 -0700)] 
Fix an invalid string to bytes comparison in Python 3

In Python 3 this branch would never evaluate to `True` due to comparing a string to bytes.

This was flagged by running some unit tests with the `-bb` flag, so I've added
`-bb` to run with the babel unit tests in Python3.5

Here's some docs on the `-bb` flag:
https://docs.python.org/3.5/library/warnings.html#default-warning-filters
https://docs.python.org/3/howto/pyporting.html#use-continuous-integration-to-stay-compatible

8 years agoMerge pull request #491 from kdeldycke/currency-utils
Aarni Koskela [Wed, 17 May 2017 17:45:50 +0000 (20:45 +0300)] 
Merge pull request #491 from kdeldycke/currency-utils

Add currency utilities and helpers.

8 years agoAdd currency utilities and helpers. 491/head
Kevin Deldycke [Fri, 7 Apr 2017 14:09:14 +0000 (16:09 +0200)] 
Add currency utilities and helpers.

8 years agoMerge pull request #492 from akx/in-place
Aarni Koskela [Mon, 10 Apr 2017 20:12:15 +0000 (23:12 +0300)] 
Merge pull request #492 from akx/in-place

Fixed in-place editing of dir list while iterating

8 years agoFixed in-place editing of dir list while iterating 492/head
Marc-André Dufresne [Wed, 8 Mar 2017 22:21:28 +0000 (17:21 -0500)] 
Fixed in-place editing of dir list while iterating

8 years agoMerge pull request #490 from python-babel/lenient-po-locale-parse 476/head
Aarni Koskela [Thu, 6 Apr 2017 12:01:51 +0000 (15:01 +0300)] 
Merge pull request #490 from python-babel/lenient-po-locale-parse

Allow both dash and underscore separated locale identifiers in pofiles

8 years agoAllow both dash and underscore separated locale identifiers in pofiles 490/head
Aarni Koskela [Thu, 6 Apr 2017 09:45:52 +0000 (12:45 +0300)] 
Allow both dash and underscore separated locale identifiers in pofiles

Fixes #489

Augments #420 (08b9c5e76e19ae)

8 years agoMerge pull request #488 from sublee/nested
Aarni Koskela [Fri, 31 Mar 2017 13:21:37 +0000 (16:21 +0300)] 
Merge pull request #488 from sublee/nested

Extract Python messages in nested gettext calls

8 years agoFix extraction bug on nested messages 488/head
Heungsub Lee [Fri, 31 Mar 2017 11:15:33 +0000 (20:15 +0900)] 
Fix extraction bug on nested messages

It fixes !487.

8 years agoRename test case
Heungsub Lee [Fri, 31 Mar 2017 11:15:28 +0000 (20:15 +0900)] 
Rename test case

8 years agoMore complex test cases for nested gettext
Heungsub Lee [Fri, 31 Mar 2017 11:14:26 +0000 (20:14 +0900)] 
More complex test cases for nested gettext

8 years agoAdd test case for nested gettext
Heungsub Lee [Fri, 31 Mar 2017 10:19:00 +0000 (19:19 +0900)] 
Add test case for nested gettext

8 years agoMerge pull request #482 from xavfernandez/order_by_context
Aarni Koskela [Fri, 24 Mar 2017 15:24:22 +0000 (17:24 +0200)] 
Merge pull request #482 from xavfernandez/order_by_context

Sort translations according to msgid and msgctxt

8 years agoMerge pull request #433 from akx/no-inheritance-marker
Aarni Koskela [Fri, 24 Mar 2017 15:13:39 +0000 (17:13 +0200)] 
Merge pull request #433 from akx/no-inheritance-marker

Properly fall back to `long` metazone names when short forms are no-inherit

8 years agoMerge pull request #480 from python-babel/release/2.4 v2.4.0
Aarni Koskela [Fri, 24 Mar 2017 14:42:44 +0000 (16:42 +0200)] 
Merge pull request #480 from python-babel/release/2.4

Release/2.4

8 years agoWhen msgid are equal, sort according to msgctxt 482/head
Xavier Fernandez [Tue, 21 Mar 2017 15:36:56 +0000 (16:36 +0100)] 
When msgid are equal, sort according to msgctxt

Fix #481

8 years agoSimplify Message.__cmp__
Xavier Fernandez [Tue, 21 Mar 2017 15:23:09 +0000 (16:23 +0100)] 
Simplify Message.__cmp__

8 years agoBecome version 2.4.0 480/head
Aarni Koskela [Tue, 14 Mar 2017 10:07:36 +0000 (12:07 +0200)] 
Become version 2.4.0

8 years agoDistill changes from git log into CHANGES
Aarni Koskela [Tue, 14 Mar 2017 09:53:04 +0000 (11:53 +0200)] 
Distill changes from git log into CHANGES

8 years agoMerge 2.3.x release branch
Aarni Koskela [Tue, 14 Mar 2017 08:32:00 +0000 (10:32 +0200)] 
Merge 2.3.x release branch

8 years agoMerge pull request #462 from singingwolfboy/regex-flags
Aarni Koskela [Fri, 10 Mar 2017 12:23:03 +0000 (14:23 +0200)] 
Merge pull request #462 from singingwolfboy/regex-flags

Pull flags out of regular expressions

8 years agoMerge pull request #466 from abhishekcs10/winmap
Aarni Koskela [Fri, 10 Mar 2017 08:57:04 +0000 (10:57 +0200)] 
Merge pull request #466 from abhishekcs10/winmap

Issue #463.

8 years agoMerge pull request #459 from alxpy/master
Lasse Schuirmann [Wed, 25 Jan 2017 12:11:32 +0000 (13:11 +0100)] 
Merge pull request #459 from alxpy/master

Fix setup.py option 'add_location'

8 years agoIssue #463. Changed win_mapping to windows_zone_mapping in core.py line 48 466/head
Abhishek Tiwari [Tue, 10 Jan 2017 17:22:06 +0000 (22:52 +0530)] 
Issue #463. Changed win_mapping to windows_zone_mapping in core.py line 48

8 years agoPull flags out of regular expressions 462/head
David Baumgold [Thu, 29 Dec 2016 05:00:23 +0000 (00:00 -0500)] 
Pull flags out of regular expressions

8 years agoFix setup.py option 'add_location' 459/head
Alex Kuzmenko [Thu, 15 Dec 2016 13:47:38 +0000 (15:47 +0200)] 
Fix setup.py option 'add_location'

8 years agoMerge pull request #452 from mbirtwell/fix_parsing_pofile_with_obsoletes
Aarni Koskela [Mon, 21 Nov 2016 14:54:07 +0000 (16:54 +0200)] 
Merge pull request #452 from mbirtwell/fix_parsing_pofile_with_obsoletes

Fix parsing pofile with obsoletes

8 years agoFix read_pofile handling of missing plurals 452/head
Michael Birtwell [Wed, 12 Oct 2016 16:46:06 +0000 (17:46 +0100)] 
Fix read_pofile handling of missing plurals

8 years agopofile reader: Fix multi line msgctxt
Michael Birtwell [Wed, 12 Oct 2016 16:15:43 +0000 (17:15 +0100)] 
pofile reader: Fix multi line msgctxt

8 years agopofile parsing. Fix handling of obsolete + refactor
Michael Birtwell [Wed, 12 Oct 2016 15:13:50 +0000 (16:13 +0100)] 
pofile parsing. Fix handling of obsolete + refactor

Fixes the handling of the unit before the obsolete unit.
Previously it would mark the unit before an obsolete unit as obsolete
also.

Some refactoring:
* the transition between finishing one unit and starting the next
is clearer
* separate the processing of keywords and continuation lines
* combine the reset and initialisation code
* Make the handling of strings consistent.
* Add some nascent error handling, removed some errors in test inputs

8 years agoMerge pull request #438 from rrader/add_location_option
Aarni Koskela [Mon, 21 Nov 2016 08:43:23 +0000 (10:43 +0200)] 
Merge pull request #438 from rrader/add_location_option

Add option 'add_location' for location line formatting

8 years agoMerge pull request #425 from georgschoelly/jsx_tests
Aarni Koskela [Sat, 19 Nov 2016 14:27:46 +0000 (16:27 +0200)] 
Merge pull request #425 from georgschoelly/jsx_tests

Increase coverage of JSX extraction tests

8 years agoIncrease coverage of JSX extraction tests 425/head
Georg Schölly [Sat, 25 Jun 2016 10:59:00 +0000 (12:59 +0200)] 
Increase coverage of JSX extraction tests

b5e0ad8 fixed a few bugs with jsx parsing but only added
tests for the lexer. This commit adds a test for the extraction
which did not work before:

    <tag>{ _"Text" }</tag>

This test case is not present yet in the suite, only tags with
attributes (<tag attr="value">) are, but they get extracted correctly
already.

8 years agoMerge pull request #450 from ldwoolley/patch-1
Aarni Koskela [Fri, 18 Nov 2016 15:15:10 +0000 (17:15 +0200)] 
Merge pull request #450 from ldwoolley/patch-1

Improve Date Fields descriptions for issue #419

8 years agoMerge pull request #435 from akx/exop
Aarni Koskela [Fri, 18 Nov 2016 15:14:36 +0000 (17:14 +0200)] 
Merge pull request #435 from akx/exop

Fix float conversion in `extract_operands` (and the relevant test)

8 years agoMerge pull request #396 from karloskar/feature/evolve-jsx-extraction-pt2
Aarni Koskela [Mon, 24 Oct 2016 12:06:52 +0000 (15:06 +0300)] 
Merge pull request #396 from karloskar/feature/evolve-jsx-extraction-pt2

jslexer.py: Change jsx_tag regex again

8 years agojslexer.py: Change jsx_tag regex again 396/head
KO. Mattsson [Mon, 25 Apr 2016 12:46:06 +0000 (14:46 +0200)] 
jslexer.py: Change jsx_tag regex again

We've had some syntactic variations that my previous PR, #392, did not
account for. One case had a component as a prop that tripped up the
regex.

8 years agoImprove Date Fields descriptions for issue #419 450/head
ldwoolley [Fri, 7 Oct 2016 23:39:04 +0000 (16:39 -0700)] 
Improve Date Fields descriptions for issue #419

Described recommendation to use "Y" with "w" for consistent results in ISO year-week and indicated possible surprising results for year rollover and total number of weeks in a year.

8 years agoMerge pull request #449 from roramirez/fix_spelling
Aarni Koskela [Wed, 5 Oct 2016 20:13:11 +0000 (23:13 +0300)] 
Merge pull request #449 from roramirez/fix_spelling

Fix spelling word into Raise TypeError

8 years agoFix spelling word into Raise TypeError 449/head
Rodrigo Ramírez Norambuena [Wed, 5 Oct 2016 18:56:33 +0000 (15:56 -0300)] 
Fix spelling word into Raise TypeError