Merge lp:~angeloc/ubuntu-accomplishments-daemon/fix-for-typo into lp:ubuntu-accomplishments-daemon

Proposed by Angelo Compagnucci
Status: Merged
Merged at revision: 70
Proposed branch: lp:~angeloc/ubuntu-accomplishments-daemon/fix-for-typo
Merge into: lp:ubuntu-accomplishments-daemon
Diff against target: 57 lines (+6/-6)
1 file modified
accomplishments/daemon/api.py (+6/-6)
To merge this branch: bzr merge lp:~angeloc/ubuntu-accomplishments-daemon/fix-for-typo
Reviewer Review Type Date Requested Status
James Tatum (community) Approve
Jono Bacon Pending
Review via email: mp+104499@code.launchpad.net

Description of the change

Fixed typo in pyhton format string

To post a comment you must log in.
39. By Angelo Compagnucci

modified:
  accomplishments/daemon/api.py
   Fixed various typo in python format string

Revision history for this message
James Tatum (jtatum) wrote :

Good finds!

review: Approve
Revision history for this message
Rafał Cieślak (rafalcieslak256) wrote :

Thanks Angelo for finding these, and apologies for the time it took to review them, despite their simplicity.
It turned out that most of these is not anymore present in the code because the daemon has been significantly rewritten. This caused this branch to be not mergable without serious conflicts... However, I have applied your fixes manually whereever it was appropriate, which is why I'll mark it as merged.
Thanks again, nice job!

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'accomplishments/daemon/api.py'
2--- accomplishments/daemon/api.py 2012-04-28 21:57:30 +0000
3+++ accomplishments/daemon/api.py 2012-05-03 09:27:22 +0000
4@@ -399,7 +399,7 @@
5
6 log.msg(
7 "------------------- Ubuntu Accomplishments Daemon Log - %s "
8- "-------------------", str(datetime.datetime.now()))
9+ "-------------------" % str(datetime.datetime.now()))
10
11 self._load_config_file()
12
13@@ -718,7 +718,7 @@
14 def get_config_value(self, section, item):
15 """Return a configuration value from the .accomplishments file"""
16 log.msg(
17- "Returning configuration values for: %s, %s", section, item)
18+ "Returning configuration values for: %s, %s" % (section, item))
19 homedir = os.getenv("HOME")
20 config = ConfigParser.RawConfigParser()
21 cfile = self.dir_config + "/.accomplishments"
22@@ -737,7 +737,7 @@
23 def write_config_file_item(self, section, item, value):
24 """Set a configuration value in the .accomplishments file"""
25 log.msg(
26- "Set configuration file value in '%s': %s = %s", section, item,
27+ "Set configuration file value in '%s': %s = %s" % (section, item),
28 value)
29 homedir = os.getenv("HOME")
30 config = ConfigParser.RawConfigParser()
31@@ -792,7 +792,7 @@
32 if app in l:
33 lang = l[app]
34 log.msg(
35- "Accomplishing something: %s, %s", app, accomplishment_name)
36+ "Accomplishing something: %s, %s" % (app, accomplishment_name))
37 accom_file = os.path.join(self.accomplishments_path, app, lang,
38 "%s.accomplishment" % accomplishment_name)
39 try:
40@@ -1227,7 +1227,7 @@
41
42 # XXX this should be removed as we are using write_extra_information_file
43 log.msg(
44- "Creating Extra Information file: %s, %s, %s", app, item, data)
45+ "Creating Extra Information file: %s, %s, %s" % (app, item, data))
46 extrainfodir = os.path.join(self.trophies_path, ".extrainformation/")
47
48 if not os.path.isdir(extrainfodir):
49@@ -1243,7 +1243,7 @@
50 def write_extra_information_file(self, app, item, data):
51
52 log.msg(
53- "Saving Extra Information file: %s, %s, %s", app, item, data)
54+ "Saving Extra Information file: %s, %s, %s" % (app, item, data))
55 extrainfodir = os.path.join(self.trophies_path, ".extrainformation/")
56
57 if not os.path.isdir(extrainfodir):

Subscribers

People subscribed via source and target branches