Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Dec 2, 2021. It is now read-only.

fixed anomalous backslash in string#32

Merged
ramalho merged 1 commit intofluentpython:masterfromanancds:patch
Mar 20, 2019
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion03-dict-set/index.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -8,7 +8,7 @@
import sys
import re

WORD_RE = re.compile('\w+')
WORD_RE = re.compile(r'\w+')

index = {}
with open(sys.argv[1], encoding='utf-8') as fp:
Expand Down
2 changes: 1 addition & 1 deletion03-dict-set/index0.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -8,7 +8,7 @@
import sys
import re

WORD_RE = re.compile('\w+')
WORD_RE = re.compile(r'\w+')

index = {}
with open(sys.argv[1], encoding='utf-8') as fp:
Expand Down
2 changes: 1 addition & 1 deletion03-dict-set/index_default.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -9,7 +9,7 @@
import re
import collections

WORD_RE = re.compile('\w+')
WORD_RE = re.compile(r'\w+')

index = collections.defaultdict(list) # <1>
with open(sys.argv[1], encoding='utf-8') as fp:
Expand Down
2 changes: 1 addition & 1 deletion14-it-generator/sentence.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -5,7 +5,7 @@
import re
import reprlib

RE_WORD = re.compile('\w+')
RE_WORD = re.compile(r'\w+')


class Sentence:
Expand Down
2 changes: 1 addition & 1 deletion14-it-generator/sentence_gen.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -5,7 +5,7 @@
import re
import reprlib

RE_WORD = re.compile('\w+')
RE_WORD = re.compile(r'\w+')


class Sentence:
Expand Down
2 changes: 1 addition & 1 deletion14-it-generator/sentence_gen2.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -5,7 +5,7 @@
import re
import reprlib

RE_WORD = re.compile('\w+')
RE_WORD = re.compile(r'\w+')


class Sentence:
Expand Down
2 changes: 1 addition & 1 deletion14-it-generator/sentence_genexp.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -6,7 +6,7 @@
import re
import reprlib

RE_WORD = re.compile('\w+')
RE_WORD = re.compile(r'\w+')


class Sentence:
Expand Down
2 changes: 1 addition & 1 deletion14-it-generator/sentence_iter.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -9,7 +9,7 @@
import re
import reprlib

RE_WORD = re.compile('\w+')
RE_WORD = re.compile(r'\w+')


class Sentence:
Expand Down
2 changes: 1 addition & 1 deletion14-it-generator/sentence_iter2.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -8,7 +8,7 @@
import re
import reprlib

RE_WORD = re.compile('\w+')
RE_WORD = re.compile(r'\w+')


class Sentence:
Expand Down
4 changes: 2 additions & 2 deletions18-asyncio-py3.7/charfinder/charfinder.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -64,9 +64,9 @@
import functools
from collections import namedtuple

RE_WORD = re.compile('\w+')
RE_WORD = re.compile(r'\w+')
RE_UNICODE_NAME = re.compile('^[A-Z0-9 -]+$')
RE_CODEPOINT = re.compile('U\+([0-9A-F]{4,6})')
RE_CODEPOINT = re.compile(r'U\+([0-9A-F]{4,6})')

INDEX_NAME = 'charfinder_index.pickle'
MINIMUM_SAVE_LEN = 10000
Expand Down
2 changes: 1 addition & 1 deletion18-asyncio/charfinder/charfinder.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -64,7 +64,7 @@
import functools
from collections import namedtuple

RE_WORD = re.compile('\w+')
RE_WORD = re.compile(r'\w+')
RE_UNICODE_NAME = re.compile('^[A-Z0-9 -]+$')
RE_CODEPOINT = re.compile('U\+([0-9A-F]{4,6})')

Expand Down
4 changes: 2 additions & 2 deletionsattic/concurrency/charfinder/charfinder.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -63,9 +63,9 @@
import itertools
from collections import namedtuple

RE_WORD = re.compile('\w+')
RE_WORD = re.compile(r'\w+')
RE_UNICODE_NAME = re.compile('^[A-Z0-9 -]+$')
RE_CODEPOINT = re.compile('U\+([0-9A-F]{4,6})')
RE_CODEPOINT = re.compile(r'U\+([0-9A-F]{4,6})')

INDEX_NAME = 'charfinder_index.pickle'
MINIMUM_SAVE_LEN = 10000
Expand Down
2 changes: 1 addition & 1 deletionattic/dicts/index_alex.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -8,7 +8,7 @@
import sys
import re

NONWORD_RE = re.compile('\W+')
NONWORD_RE = re.compile(r'\W+')

idx = {}
with open(sys.argv[1], encoding='utf-8') as fp:
Expand Down
4 changes: 2 additions & 2 deletionsattic/sequences/sentence_slice.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -6,9 +6,9 @@
import reprlib


RE_TOKEN = re.compile('\w+|\s+|[^\w\s]+')
RE_TOKEN = re.compile(r'\w+|\s+|[^\w\s]+')
RE_WORD = re.compile('\w+')
RE_PUNCTUATION = re.compile('[^\w\s]+')
RE_PUNCTUATION = re.compile(r'[^\w\s]+')


class SentenceSlice:
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp