Skip to content

Commit

Permalink
Revert last commit.
Browse files Browse the repository at this point in the history
It introduces too many issues with Decimals in the end.
  • Loading branch information
Andi Albrecht committed Apr 29, 2016
1 parent a957b96 commit 8718750
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions rsr/worksheet/results.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import csv
import locale
import mimetypes
import tempfile
import time
Expand Down Expand Up @@ -354,8 +353,6 @@ def _get_markup_for_value(self, value, markup=True):
return self._markup_none(value, markup)
elif self.is_blob_value(value):
return self._markup_blob(value)
elif isinstance(value, (float, int)):
return self._markup_number(value)
else:
data = str(value)
lines = data.splitlines()
Expand All @@ -378,9 +375,6 @@ def _markup_none(self, value, markup):
return '<span color="{}">NULL</span>'.format(
self._col_insensitive_str)

def _markup_number(self, value):
return locale.format('%d', value, grouping=True)

def _markup_blob(self, value):
mime, _ = Gio.content_type_guess(None, value)
if mime is not None:
Expand Down

0 comments on commit 8718750

Please sign in to comment.