Skip to content

Commit

Permalink
used double quotes in re.search
Browse files Browse the repository at this point in the history
  • Loading branch information
DNX committed Dec 20, 2011
1 parent e77d92e commit 955924d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pinax/core/management/commands/setup_project.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def setup_project(self, destination, base, options):


user_project_name = os.path.basename(destination) user_project_name = os.path.basename(destination)


if not re.search(r'^\w+$', user_project_name): if not re.search(r"^\w+$", user_project_name):
sys.stderr.write("Error: %r is not a valid app name. Please use only numbers, letters and underscores.\n" % (user_project_name)) sys.stderr.write("Error: %r is not a valid app name. Please use only numbers, letters and underscores.\n" % (user_project_name))
sys.exit(1) sys.exit(1)


Expand Down

0 comments on commit 955924d

Please sign in to comment.