| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 289fab8 commit 5514660
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -145,14 +145,12 @@ def __str__(self): | |||
| 145 | 145 | def u(text): | |
| 146 | 146 | if PY3: | |
| 147 | 147 | return text | |
| 148 | - else: | ||
| 149 | - return text.decode('unicode_escape') | ||
| 148 | + return text.decode('unicode_escape') | ||
| 150 | 149 | ||
| 151 | 150 | def b(data): | |
| 152 | 151 | if PY3: | |
| 153 | 152 | return data.encode('latin1') | |
| 154 | - else: | ||
| 155 | - return data | ||
| 153 | + return data | ||
| 156 | 154 | ||
| 157 | 155 | if PY3: | |
| 158 | 156 | _unichr = chr | |
@@ -282,8 +280,7 @@ def encodefilename(fn): | |||
| 282 | 280 | ch_utf8 = ch.encode('utf-8') | |
| 283 | 281 | encoded.append(ch_utf8) | |
| 284 | 282 | return bytes().join(encoded) | |
| 285 | - else: | ||
| 286 | - return fn.encode(FS_ENCODING, FS_ERRORS) | ||
| 283 | + return fn.encode(FS_ENCODING, FS_ERRORS) | ||
| 287 | 284 | ||
| 288 | 285 | def decodefilename(fn): | |
| 289 | 286 | return fn.decode(FS_ENCODING, FS_ERRORS) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments