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.

Commit9fb76ef

Browse files
committed
fixed anomalous backslash in string
1 parentdd16448 commit9fb76ef

File tree

14 files changed

+17
-17
lines changed

14 files changed

+17
-17
lines changed

‎03-dict-set/index.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
importsys
99
importre
1010

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

1313
index= {}
1414
withopen(sys.argv[1],encoding='utf-8')asfp:

‎03-dict-set/index0.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
importsys
99
importre
1010

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

1313
index= {}
1414
withopen(sys.argv[1],encoding='utf-8')asfp:

‎03-dict-set/index_default.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
importre
1010
importcollections
1111

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

1414
index=collections.defaultdict(list)# <1>
1515
withopen(sys.argv[1],encoding='utf-8')asfp:

‎14-it-generator/sentence.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
importre
66
importreprlib
77

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

1010

1111
classSentence:

‎14-it-generator/sentence_gen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
importre
66
importreprlib
77

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

1010

1111
classSentence:

‎14-it-generator/sentence_gen2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
importre
66
importreprlib
77

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

1010

1111
classSentence:

‎14-it-generator/sentence_genexp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
importre
77
importreprlib
88

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

1111

1212
classSentence:

‎14-it-generator/sentence_iter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
importre
1010
importreprlib
1111

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

1414

1515
classSentence:

‎14-it-generator/sentence_iter2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
importre
99
importreprlib
1010

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

1313

1414
classSentence:

‎18-asyncio-py3.7/charfinder/charfinder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@
6464
importfunctools
6565
fromcollectionsimportnamedtuple
6666

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

7171
INDEX_NAME='charfinder_index.pickle'
7272
MINIMUM_SAVE_LEN=10000

‎18-asyncio/charfinder/charfinder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
importfunctools
6565
fromcollectionsimportnamedtuple
6666

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

‎attic/concurrency/charfinder/charfinder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@
6363
importitertools
6464
fromcollectionsimportnamedtuple
6565

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

7070
INDEX_NAME='charfinder_index.pickle'
7171
MINIMUM_SAVE_LEN=10000

‎attic/dicts/index_alex.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
importsys
99
importre
1010

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

1313
idx= {}
1414
withopen(sys.argv[1],encoding='utf-8')asfp:

‎attic/sequences/sentence_slice.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
importreprlib
77

88

9-
RE_TOKEN=re.compile('\w+|\s+|[^\w\s]+')
9+
RE_TOKEN=re.compile(r'\w+|\s+|[^\w\s]+')
1010
RE_WORD=re.compile('\w+')
11-
RE_PUNCTUATION=re.compile('[^\w\s]+')
11+
RE_PUNCTUATION=re.compile(r'[^\w\s]+')
1212

1313

1414
classSentenceSlice:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp