Skip to content

Commit

Permalink
Import version 1.19
Browse files Browse the repository at this point in the history
  • Loading branch information
crhode authored and witsch committed Sep 24, 2011
1 parent 8a0bafe commit b2bc642
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions PythonTidy.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,12 @@
DEBUG = False
PERSONAL = False

VERSION = '1.18' # 2009 Feb 05
VERSION = '1.19' # 2009 Jun 29

# 2009 Jun 29 . v1.19 . ccr . For Daniel G. Siegel at
# http://home.cs.tum.edu, *python* 2.6 tokenizer returns newlines
# separate from comments, so, though it may be necessary to save
# newlines, it won't do for them to overlay comments.

# 2009 Feb 05 . v1.18 . ccr . For Massimo Di Pierro at
# http://mdp.cti.depaul.edu/, do not break up raw literals.
Expand Down Expand Up @@ -1053,7 +1058,10 @@ def compensate_for_tabs(line, scol): # 2007 May 25
original = COMMENT_PATTERN.sub(NULL, original, 1) # 2007 May 25
if (token_type in [tokenize.COMMENT]) and (original in [NULL]):
original = SPACE
self[self.max_lineno] = [scol, original]
if self.max_lineno in self: # 2009 Jun 29
pass
else:
self[self.max_lineno] = [scol, original]
elif token_type in [tokenize.NUMBER, tokenize.STRING]: # 2007 Jan 14
try:
original = token_string.strip().decode(INPUT.coding, 'backslashreplace')
Expand Down

0 comments on commit b2bc642

Please sign in to comment.