File tree Expand file tree Collapse file tree 3 files changed +2
-16
lines changed Expand file tree Collapse file tree 3 files changed +2
-16
lines changed Original file line number Diff line number Diff line change @@ -139,11 +139,7 @@ def leaves(obj):
139
139
def int_str (segment ):
140
140
'''
141
141
If the segment is an integer, return the string conversion.
142
- Otherwise return the segment unchanged. The conversion uses 'str'
143
- which means that:
144
-
145
- * in Python 2.x: 0 -> b'0'
146
- * in Python 3.x: 0 -> u'0'
142
+ Otherwise return the segment unchanged. The conversion uses 'str'.
147
143
148
144
int_str(segment) -> str
149
145
'''
@@ -180,15 +176,6 @@ def match(segments, glob):
180
176
fnmatch.fnmatchcase returns True. If fnmatchcase returns False or
181
177
throws an exception the result will be False.
182
178
183
- A Word of Caution:
184
-
185
- *** Globs can have different results between Python 2.x and 3.x. ***
186
-
187
- fnmatchcase differs in behavior between Python 2.x and 3.x with
188
- regard to handling comparison between different types (e.g. bytes
189
- and unicode). In 2.x it will attempt the comparison implicitly
190
- converting, but in 3.x it will throw an exception.
191
-
192
179
match(segments, glob) -> bool
193
180
'''
194
181
segments = tuple (segments )
Original file line number Diff line number Diff line change 1
- VERSION = "2.0.3 "
1
+ VERSION = "2.0.4 "
Original file line number Diff line number Diff line change 32
32
'Intended Audience :: Developers' ,
33
33
'License :: OSI Approved :: MIT License' ,
34
34
'Natural Language :: English' ,
35
- 'Programming Language :: Python :: 2.7' ,
36
35
'Programming Language :: Python :: 3' ,
37
36
'Topic :: Software Development :: Libraries :: Python Modules' ,
38
37
],
You can’t perform that action at this time.
0 commit comments