quantifiedcode / python-anti-patterns

An open collection of Python anti-patterns and worst practices.
https://quantifiedcode.github.io/python-anti-patterns
Other
1.71k stars 249 forks source link

Not using forward slashes #53

Closed programmdesign closed 9 years ago

programmdesign commented 9 years ago

First, the "correct" example also uses backslashes. Second, the backslashes are used incorrectly, and will not compile. There are two fixes for this: Escape the backslashes: "\path\to\my\static\files" Use a raw string: r"\path\to\my\static\files"

0xKD commented 9 years ago

I've made this change in #55

programmdesign commented 9 years ago

@0xKD Thanks! That's great. I'll have a look. #closed