Skip to content

Commit eb4a82d

Browse files
committed
fix style
1 parent fddc1a1 commit eb4a82d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/FcntlModuleBuiltins.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2019, 2020, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* The Universal Permissive License (UPL), Version 1.0
@@ -101,7 +101,7 @@ synchronized PNone flock(VirtualFrame frame, int fd, int operation,
101101
FileChannel fc = (FileChannel) channel;
102102
FileLock lock = rs.getFileLock(fd);
103103
try {
104-
lock = doLockOperation(operation, fc, lock);
104+
lock = doLockOperation(operation, fc, lock);
105105
} catch (IOException e) {
106106
throw raiseOSError(frame, e);
107107
}

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/PRaiseOSErrorNode.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ public final PException raiseOSError(Frame frame, Exception e, String filename)
9898

9999
public final PException raiseOSError(Frame frame, Exception e, String filename, String filename2) {
100100
ErrorAndMessagePair errorAndMessage = OSErrorEnum.fromException(e);
101-
return execute(frame, new Object[]{errorAndMessage.oserror.getNumber(), errorAndMessage.message, (filename != null) ? filename : PNone.NONE, PNone.NONE, (filename2 != null) ? filename2 : PNone.NONE});
101+
return execute(frame, new Object[]{errorAndMessage.oserror.getNumber(), errorAndMessage.message, (filename != null) ? filename : PNone.NONE, PNone.NONE,
102+
(filename2 != null) ? filename2 : PNone.NONE});
102103
}
103104

104105
@Specialization

0 commit comments

Comments
 (0)