Skip to content

Commit

Permalink
Merge pull request #31 from jiripospisil/invalid-escape-sequence
Browse files Browse the repository at this point in the history
Fix "SyntaxWarning: invalid escape sequence" warnings
  • Loading branch information
geophile authored May 12, 2024
2 parents 7f348b6 + 5e475b2 commit 10e861d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions marcel/doc/help_color.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@
COLOR_SCHEME.file_dir = Color(0, 2, 3, BOLD)
COLOR_SCHEME.file_link = Color(4, 2, 0, BOLD)
COLOR_SCHEME.file_executable = Color(0, 4, 0, BOLD)
COLOR_SCHEME.file_extension = \{'.jpg': COLOR_IMAGE_HIGHLIGHT,
COLOR_SCHEME.file_extension = \\{'.jpg': COLOR_IMAGE_HIGHLIGHT,
'.jpeg': COLOR_IMAGE_HIGHLIGHT,
'.png': COLOR_IMAGE_HIGHLIGHT,
'.mov': COLOR_IMAGE_HIGHLIGHT,
'.avi': COLOR_IMAGE_HIGHLIGHT,
'.gif': COLOR_IMAGE_HIGHLIGHT\}
'.gif': COLOR_IMAGE_HIGHLIGHT\\}
COLOR_SCHEME.error = Color(5, 5, 0)
COLOR_SCHEME.process_pid = Color(0, 2, 4, BOLD)
COLOR_SCHEME.process_command = Color(3, 2, 0, BOLD)
Expand Down
4 changes: 2 additions & 2 deletions marcel/doc/help_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@
For example, to format the above output differently:
{p,wrap=F,indent=4}
ls -f | map (f: (f.name, f.size)) | out '\{\}: \{\}'
ls -f | map (f: (f.name, f.size)) | out '\\{\\}: \\{\\}'
The standard Python formatting string, '\{\}: \{\}' produces this output:
The standard Python formatting string, '\\{\\}: \\{\\}' produces this output:
{p,wrap=F,indent=4}
10-console-messages.conf: 77
Expand Down
2 changes: 1 addition & 1 deletion marcel/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# You should have received a copy of the GNU General Public License
# along with Marcel. If not, see <https://www.gnu.org/licenses/>.

VERSION = '0.25.0'
VERSION = '0.26.0'
2 changes: 1 addition & 1 deletion test/test_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ def test_red():
expected_out=[1])
TEST.run('gen 20 1 | select (x: x in (3, 7, 15)) | red &',
expected_out=[3])
TEST.run('gen 75 | select (x: x in (18, 36, 73)) | red \|',
TEST.run('gen 75 | select (x: x in (18, 36, 73)) | red \\|',
expected_out=[127])
TEST.run('gen 3 | map (x: x == 1) | red and',
expected_out=[False])
Expand Down

0 comments on commit 10e861d

Please sign in to comment.