mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-05 03:00:15 -04:00
Strip surrounding quotes on sprite paths.
This commit is contained in:
@@ -41,7 +41,7 @@ class Spriter(object):
|
||||
self.actual_path = actual_path
|
||||
|
||||
def _make_sprite(self, match):
|
||||
path = match.group(1)
|
||||
path = match.group(1).strip('"')
|
||||
path = re.sub("^" + self.css_path, self.actual_path, path)
|
||||
if os.path.exists(path):
|
||||
if path in self.im_lookup:
|
||||
|
||||
Reference in New Issue
Block a user