Commit Graph

14 Commits

Author SHA1 Message Date
4b754f0b48 Fix date modifiers for sk 2023-08-07 16:22:24 +01:00
41720c5a7e Migrate code style to Black 2023-07-31 14:40:59 +01:00
70520be80c Add support for open spans 2023-07-04 20:37:42 +01:00
f3b5f75e37 Fix strings containing deprecated illegal escape sequences (#648)
Python 3.6 and above has deprecated illegal string escape sequences. Escape sequences are preceded by a '\' and valid ones are "\n\t\r" etc. Illegal ones are not in the list https://docs.python.org/3/reference/lexical_analysis.html#string-and-bytes-literals.

Previous to Python 3.6 these illegal sequences were ignored and the '\' was left in place. Pylint has been noting these for a while now.

This PR corrects these sequences in Gramps. I used

find . -name "*.py" | xargs -t -n 1 python3 -Wd -m py_compile 2>&1 | grep Depre

to locate the failing strings.
2018-09-04 12:03:17 +10:00
3d3b13c8ad 9985: secondary locales do not use their own numeric date format 2017-04-09 15:21:08 -07:00
2d92101438 Replace GRAMPS with Gramps in comments 2015-09-07 21:58:52 +01:00
cdee00aca2 Remove trailing whitespace 2015-08-23 18:42:07 +01:00
3b5efdf7ae Remove imports from __future__ module 2015-03-14 16:10:36 +00:00
86303f6116 Update FSF address to current location. 2014-08-08 19:39:45 -07:00
1af22a530c Git Merge Request #10: Update Slovak date handler 2014-05-30 10:12:22 +02:00
f6be31eb39 Remove subversion substitution variables 2014-04-15 14:10:18 +01:00
e4cbeaef19 added and/or clarified various date handler comments
also slightly reformatted a few date handler lines
and fixed one (locale-specific) date handler typo


svn: r22672
2013-07-13 18:01:08 +00:00
bb5fc7cb7c 2620: GEPS 031: Python 3 support - 3.2
This does patch updates Gramps to the 3.2 syntax, it does not yet mean Gramps works with python 3.2
Expect next day commits to fix further issues, but this is the main 2to3 tool created patch changed
where needed to have python 2.7 work. 
Specific issues might be:
  1. next has been changed, must be checked
  2. new division as on the wiki page listed is to do
  3. ...


svn: r20634
2012-11-07 17:53:14 +00:00
326d604365 GEPS 026: Replace 'make' for Gramps build
If we want to use Gramps from the code directory, src should be called gramps to allow import


svn: r20466
2012-09-30 11:55:52 +00:00