diff options
| author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-01-29 10:01:41 +0000 |
|---|---|---|
| committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-01-29 10:01:41 +0000 |
| commit | f1ba722e2af0233a20552a7aa119818c10f59ce2 (patch) | |
| tree | a3a89541bead812f4fe2bdb51c7ec2d8f8b0ce13 /lib | |
| parent | b5bbe477af9dab366cb7e7ef19ffa5c9a0dc5330 (diff) | |
| download | ruby-f1ba722e2af0233a20552a7aa119818c10f59ce2.tar.gz ruby-f1ba722e2af0233a20552a7aa119818c10f59ce2.tar.xz ruby-f1ba722e2af0233a20552a7aa119818c10f59ce2.zip | |
* lib/pp.rb: don't print a mode File::Stat as decimal number.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/pp.rb | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -361,10 +361,10 @@ class File pp.breakable pp.group { m = self.mode - pp.text "mode="; pp.pp m + pp.text "mode="; pp.text sprintf("0%o", m) pp.breakable - pp.text sprintf("(0%o %s %c%c%c%c%c%c%c%c%c)", - m, self.ftype, + pp.text sprintf("(%s %c%c%c%c%c%c%c%c%c)", + self.ftype, (m & 0400 == 0 ? ?- : ?r), (m & 0200 == 0 ? ?- : ?w), (m & 0100 == 0 ? (m & 04000 == 0 ? ?- : ?S) : |
