Skip to content

Commit

Permalink
ext.papermanager: s/pager/paper/
Browse files Browse the repository at this point in the history
  • Loading branch information
hut committed Dec 4, 2014
1 parent b132301 commit 4232509
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ranger/ext/papermanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def set_paper_info(self, filename, update_dict):

if not self.deep_search:
metafile = next(self._get_metafile_names(filename))
return self._set_pager_info_raw(filename, update_dict, metafile)
return self._set_paper_info_raw(filename, update_dict, metafile)

for i, metafile in enumerate(self._get_metafile_names(filename)):
if i == 0:
Expand All @@ -76,7 +76,7 @@ def set_paper_info(self, filename, update_dict):
for row in reader:
name, year, title, authors, url = row
if name in valid:
return self._set_pager_info_raw(filename, update_dict,
return self._set_paper_info_raw(filename, update_dict,
metafile)
self.metadata_cache[filename] = result
finally:
Expand All @@ -86,9 +86,9 @@ def set_paper_info(self, filename, update_dict):
# No .paperinfo file found, so let's create a new one in the same path
# as the given file.
if first_metafile:
return self._set_pager_info_raw(filename, update_dict, first_metafile)
return self._set_paper_info_raw(filename, update_dict, first_metafile)

def _set_pager_info_raw(self, filename, update_dict, metafile):
def _set_paper_info_raw(self, filename, update_dict, metafile):
valid = (filename, basename(filename))
paperinfo = OpenStruct(filename=filename, title=None, year=None,
authors=None, url=None)
Expand Down

0 comments on commit 4232509

Please sign in to comment.