Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

fix issues #95 #96

Merged
merged 1 commit into from

2 participants

@shuge

fix issues #95, web.utils.safewrite throws global name path is not defined exception.

@aaronsw aaronsw merged commit f1a6df3 into webpy:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 8, 2011
  1. @shuge
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  web/utils.py
View
2  web/utils.py
@@ -715,7 +715,7 @@ def safewrite(filename, content):
f = file(filename + '.tmp', 'w')
f.write(content)
f.close()
- os.rename(f.name, path)
+ os.rename(f.name, filename)
def dictreverse(mapping):
"""
Something went wrong with that request. Please try again.